Can't stop StoryBoard
I am creating an animation in procedural code. Nothing fancy, it just rotates a canvas.
I initiate the animation like this
TheAnimation.From = 0;
TheAnimation.To = 360;
TheAnimation.RepeatBehavior =
RepeatBehavior.Forever;TheAnimation.Duration =
newDuration(TimeSpan.FromMilliseconds(2000));// 2 secs per revolutionSpinCanvas.BeginStoryboard(TheStoryboard);
How can I stop it?
The sample code in the SDK (How to: Control a Storyboard After It Starts) suggests that this will do the trick, but no dice.
TheStoryboard.Stop(SpinCanvas);Is it taking me too literally on the "Forever" part?
Thanks
NIK

