animation - How to unanimate WPF DependencyProperty? -


After running WPF animations on the dependency properties in the code, dependency properties can no longer be set by using SetValue. They can only change through animation.

I want to change a dependency property, for some time by short animations, sometimes in the code immediately.

How can I remove the animation? What is the dependence of the dependence on the animation ending?

After the animation ends (or the stop when you want it):

  myButton.Width = myButton.Width; // Set the current value to the end value of the animation myButton.ApplyAnimationClock (Button. WidthProperty, null); // Delete the animation  

for a library that makes it easy


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -