WPF Reflections

Aug 25 2008   10:29PM GMT

WPF Animations – FillBehaviour property

Mark Shurmer Profile: MarkWPF

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 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:


 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: