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: