แก้ไข

แชร์ผ่าน


Timeline.FillBehavior Property

Definition

Gets or sets a value that specifies how the Timeline behaves after it reaches the end of its active period.

public:
 property System::Windows::Media::Animation::FillBehavior FillBehavior { System::Windows::Media::Animation::FillBehavior get(); void set(System::Windows::Media::Animation::FillBehavior value); };
public System.Windows.Media.Animation.FillBehavior FillBehavior { get; set; }
member this.FillBehavior : System.Windows.Media.Animation.FillBehavior with get, set
Public Property FillBehavior As FillBehavior

Property Value

A value that specifies how the timeline behaves after it reaches the end of its active period but its parent is inside its active or fill period. The default value is HoldEnd.

Remarks

Set an animations FillBehavior property to HoldEnd when you want the animation to hold its value after it reaches the end of its active period. An animation that has reached the end of its active period that has a FillBehavior setting of HoldEnd is said to be in its fill period. When you don't want an animation to hold its value after it reaches the end of its active period, set its

FillBehavior property to Stop.

Because an animation in its fill period continues to override its target property's value, attempting to set the target property's value through other means might appear to have no effect. For an example showing how to set a property value after it has been animated, see How to: Set a Property After Animating It with a Storyboard.

A child timeline stops playing and filling when its parent timeline stops; if you want a child timeline to fill, make sure its parent timeline has a FillBehavior of HoldEnd.

Dependency Property Information

Identifier field FillBehaviorProperty
Metadata properties set to true None

Applies to