Visual3D.BeginAnimation 方法

定義

根據指定的 DependencyPropertyAnimationTimeline,初始化 HandoffBehavior 物件的動畫序列。

多載

BeginAnimation(DependencyProperty, AnimationTimeline)

根據指定的 AnimationTimeline,初始化 DependencyProperty 物件的動畫序列。

C#
public void BeginAnimation (System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationTimeline animation);

參數

dp
DependencyProperty

要顯示動畫的 DependencyProperty 物件。

animation
AnimationTimeline

具有顯示屬性動畫之必要功能的時間表。

實作

備註

當下一個畫面呈現時,就會觸發動畫順序。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

根據指定的 DependencyPropertyAnimationTimeline,初始化 HandoffBehavior 物件的動畫序列。

C#
public void BeginAnimation (System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationTimeline animation, System.Windows.Media.Animation.HandoffBehavior handoffBehavior);

參數

dp
DependencyProperty

要顯示動畫的 DependencyProperty 物件。

animation
AnimationTimeline

具有自訂新動畫之必要功能的時間表。

handoffBehavior
HandoffBehavior

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

實作

備註

當下一個畫面呈現時,就會觸發動畫順序。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9