How to stop an animation in C# / WPF?

前端 未结 8 823
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 08:54

I have something like this:

barProgress.BeginAnimation(RangeBase.ValueProperty, new DoubleAnimation(
    barProgress.Value, dNextProgressValue,
    new Duration(T         


        
8条回答
  •  青春惊慌失措
    2020-11-28 09:48

    Place the animation in a StoryBoard. Call Begin() and Stop() on the storyboard to start to stop the animations.

提交回复
热议问题