tags:

views:

237

answers:

1

In my current application I have this little animation. It makes a full 360 degrees rotation of a canvas and works fine.

<DoubleAnimation
 Storyboard.TargetName="WaitCanvas" 
 Storyboard.TargetProperty="(Canvas.RenderTransform).(TransformGroup.Children)[0]  
 .(RotateTransform.Angle)" 
 From="0" To="360" Duration="0:0:2"
 AutoReverse="False" RepeatBehavior="Forever" />

But the thing I want to do is not a smooth animation but animation is steps of 22.5 degrees each. How can this be done?

+2  A: 

You could use a DoubleAnimationUsingKeyFrames and make two keyframes for each increment of 22.5 degrees at the same point in time.

SLaks