WPF Animations - FillBehaviour property
Posted by: Mark Shurmer
FillBehaviour is a handy little property when you are doing animations.
It specifies what happens when the animation ends.
It’s actually an enum, and you can specify the following values:
HoldEnd
Stop
HoldEnd will keep the ending value of the animation, whereas Stop will revert back to the original value.
That’s a somewhat bizarre naming in my opinion.
Also, I assume that there are new values expected in the future.
In the following example , two circles move across the screen a bit.
Notice how I use a Canvas in order to specify the Left property for the circles and also the syntax for specifying them in the animations.
The top circle stays where the animation finished, whereas the bottom one goes back to the original value:




