I am looking for an easy way to convert some XAML animation to C# code. Is there any tool available to do that?
Thanks!
Wally
This is the code I am trying to convert:
<Storyboard x:Key='Storyboard1'> <Rotation3DAnimationUsingKeyFrames BeginTime='00:00:00' Storyboard.TargetName='DefaultGroup' Storyboard.TargetProperty='(Visual3D.Transform).(Transform3DGroup.Children)[2].(RotateTransform3D.Rotation)'> <SplineRotation3DKeyFrame KeyTime='00:00:04.0200000'> <SplineRotation3DKeyFrame.Value> <AxisAngleRotation3D Angle='144.99999999999997' Axis='1,0,0'/> </SplineRotation3DKeyFrame.Value> </SplineRotation3DKeyFrame> </Rotation3DAnimationUsingKeyFrames> </Storyboard>
This is the same code in c#: