I have something like this:
barProgress.BeginAnimation(RangeBase.ValueProperty, new DoubleAnimation( barProgress.Value, dNextProgressValue, new Duration(T
<Trigger.EnterActions> <BeginStoryboard x:Name="myStory"> ......... </BeginStoryboard> </Trigger.EnterActions> <Trigger.ExitActions> <StopStoryboard BeginStoryboardName="myStory"/> </Trigger.ExitActions>
To stop it, call BeginAnimation again with the second argument set to null.
BeginAnimation
null