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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -