Jun 21 2008 2:38PM GMT
Posted by: Mark Shurmer
WPF, Animation, XAML
WPF - animation with automatic return
Posted by: Mark Shurmer
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:



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