WPF Reflections

Jun 21 2008   2:38PM GMT

WPF - animation with automatic return



Posted by: Mark Shurmer
WPF, Animation, XAML

In a previous blog I talked about how to make an animation return to it’s original value.
Actually all you need to do is add a property called AutoReverse to your animation declaration.
It needs to be set to true to enable and to false to disable it.

Easy this xaml isn’t it?

In this example, the textbox stretches horizontally when you wave the move over it, and then returns back to it’s original width:

june21_reverse.JPG

Comment on this Post


You must be logged-in to post a comment. Log-in/Register