Timeline.FillBehavior Timeline.FillBehavior Timeline.FillBehavior Timeline.FillBehavior Property

定義

取得或設定值,指定 Timeline 在其作用期結束之後的運作方式。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

屬性值

值,指定時刻表在其作用期結束之後 (但是父代還在作用期或填滿期內) 的運作方式。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. 預設值為 HoldEndThe default value is HoldEnd.

備註

當您希望FillBehavior動畫在HoldEnd其作用期間結束後保留其值時, 請將動畫屬性設定為。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. 已達到其使用FillBehavior中週期結尾的動畫, 其HoldEnd設定為, 表示在其填滿期間內。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屬性設Stop為。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.

子時間軸會在其父時間軸停止時停止播放並填滿;如果您想要讓子時間軸填滿, 請確定其父系時程表FillBehavior具有HoldEnd的。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
中繼資料屬性設定為trueMetadata properties set to true None

適用於