語言

IAnimatable.BeginAnimation 方法

定義

啟動此實例的動畫序列。

多載

備註

動畫序列會在下一幀渲染完成時觸發。

BeginAnimation(DependencyProperty, AnimationTimeline)

根據指定的 DependencyProperty,為物件啟動動畫序列AnimationTimeline。

public:
 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
Public Sub BeginAnimation (dp As DependencyProperty, animation As AnimationTimeline)

參數

dp
DependencyProperty

要動畫化的物件。

animation
AnimationTimeline

時間軸中包含必要的功能以使該屬性動畫化。

備註

動畫序列會在下一幀渲染完成時觸發。

適用於

BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

根據指定DependencyProperty與 AnimationTimeline的 .object 啟動動畫序列HandoffBehavior。

public:
 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
Public Sub BeginAnimation (dp As DependencyProperty, animation As AnimationTimeline, handoffBehavior As HandoffBehavior)

參數

dp
DependencyProperty

要動畫化的物件。

animation
AnimationTimeline

時間軸上有調整新動畫所需的功能。

handoffBehavior
HandoffBehavior

物件指定與所有相關動畫序列互動的方式。

備註

動畫序列會在下一幀渲染完成時觸發。

適用於