--- title: "How to: Specify the FillBehavior for a Timeline that has Reached the End of Its Active Period" ms.date: "03/30/2017" helpviewer_keywords: - "FillBehavior property for inactive timelines [WPF]" - "Timelines [WPF], FillBehavior property" ms.assetid: db805f59-d513-4dac-af15-47005dae3199 --- # How to: Specify the FillBehavior for a Timeline that has Reached the End of Its Active Period This example shows how to specify the for the inactive of an animated property. ## Example The property of a determines what happens to the value of an animated property when it is not being animated, that is, when the is inactive but its parent is inside its active or hold period. For example, does an animated property remain at its end value after the animation ends or does it revert back to the value it had before the animation started? The following example uses a to animate the of two rectangles. Each rectangle uses a different object. One has a that is set to , which causes the width of the rectangle to revert back to its non-animated value when the ends. The other has a of , which causes the width to remain at its end value when the ends. [!code-xaml[timingbehaviors_snip#FillBehaviorWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/timingbehaviors_snip/CSharp/FillBehaviorExample.xaml#fillbehaviorwholepage)] For the complete sample, see [Animation Example Gallery](https://github.com/Microsoft/WPF-Samples/tree/master/Animation/AnimationExamples). ## See also - - - - - - - [Animation Overview](animation-overview.md) - [Animation and Timing How-to Topics](animation-and-timing-how-to-topics.md)