WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Animation

Edit

Question

By default, an animation will overwrite the animated property's value to the "To" value of the animation after the animation completes. Since animations have the highest priority when it comes to evaluating a property's value, the property's "effective" value will remain the "To" value of the animation. This will make changing the property's value impossible. How can this be prevented?

Edit

Answer

This behavior is driven by the "FillBehavior" property of the animation. By default, FillBehavior has the value of "HoldEnd", which causes the overwrite of the property value once animation completes. Changing the FillBehavior of the animation to "Stop" will prevent the overwrite and allow assignments to the property.

Edit

Source Link

http://groups.google.com/group/microsoft.public.windows.developer.winfx.avalon/browse_thread/thread/7d6a36a5e9181edb

Edit

Keywords

animation, overwrite, fill behavior, precedence

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.