ContentElement.BeginAnimation 方法

定義

針對這個項目之指定的動畫屬性,開始播放動畫。

多載

BeginAnimation(DependencyProperty, AnimationTimeline)

針對這個項目之指定的動畫屬性,開始播放動畫。

BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

針對此項目上指定的動畫屬性啟動特定動畫,且可以選擇指定如果屬性已經有執行中的動畫時會發生何種情況。

BeginAnimation(DependencyProperty, AnimationTimeline)

針對這個項目之指定的動畫屬性,開始播放動畫。

public:
 virtual void BeginAnimation(System::Windows::DependencyProperty ^ dp, System::Windows::Media::Animation::AnimationTimeline ^ animation);
public void BeginAnimation (System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationTimeline animation);
abstract member BeginAnimation : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationTimeline -> unit
override this.BeginAnimation : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationTimeline -> unit
Public Sub BeginAnimation (dp As DependencyProperty, animation As AnimationTimeline)

參數

dp
DependencyProperty

要顯示動畫的屬性,該屬性會指定為相依性屬性識別項。

animation
AnimationTimeline

啟動動畫的時刻表。

實作

備註

當您檢查屬性是否以動畫顯示時,請注意,當呈現非動畫起點以外的第一個畫面格時,動畫將會開始並視為動畫。

BeginTime如果 的 animationnull ,則會移除任何目前的動畫,並保留屬性的目前值。

如果整個 animation 值為 null ,所有動畫都會從 屬性中移除,而屬性值會還原為其基底值。 不過,原始關聯的動畫時間軸不會停止。 指派給該時間軸的任何其他動畫都會繼續執行。

適用於

BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

針對此項目上指定的動畫屬性啟動特定動畫,且可以選擇指定如果屬性已經有執行中的動畫時會發生何種情況。

public:
 virtual void BeginAnimation(System::Windows::DependencyProperty ^ dp, System::Windows::Media::Animation::AnimationTimeline ^ animation, System::Windows::Media::Animation::HandoffBehavior handoffBehavior);
public void BeginAnimation (System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationTimeline animation, System.Windows.Media.Animation.HandoffBehavior handoffBehavior);
abstract member BeginAnimation : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationTimeline * System.Windows.Media.Animation.HandoffBehavior -> unit
override this.BeginAnimation : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationTimeline * System.Windows.Media.Animation.HandoffBehavior -> unit
Public Sub BeginAnimation (dp As DependencyProperty, animation As AnimationTimeline, handoffBehavior As HandoffBehavior)

參數

dp
DependencyProperty

要顯示動畫的屬性,該屬性會指定為相依性屬性識別項。

animation
AnimationTimeline

套用動畫的時刻表。

handoffBehavior
HandoffBehavior

一個列舉值,這個值指定新的動畫如何與已經影響屬性值的任何目前 (執行中) 動畫互動。

實作

備註

當您檢查屬性是否以動畫顯示時,請注意,當呈現非動畫起點以外的第一個畫面格時,動畫將會開始並視為動畫。

BeginTime如果 的 animationnull ,則會移除任何目前的動畫,並保留屬性的目前值。

如果整個 animation 值為 null ,所有動畫都會從 屬性中移除,而屬性值會還原為其基底值。 不過,原始關聯的動畫時間軸不會停止。 指派給該時間軸的任何其他動畫都會繼續執行。

適用於