IAnimatable.ApplyAnimationClock 方法

定義

套用指定 AnimationClock 的效果至指定相依性屬性。Applies the effect of a given AnimationClock to a given dependency property.

多載

ApplyAnimationClock(DependencyProperty, AnimationClock)

套用指定 AnimationClock 的效果至指定相依性屬性。Applies the effect of a given AnimationClock to a given dependency property.

ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

套用指定 AnimationClock 的效果至指定相依性屬性。Applies the effect of a given AnimationClock to a given dependency property. AnimationClock 對任何目前動畫的效果,是由 handoffBehavior 參數的值所決定。The effect of the new AnimationClock on any current animations is determined by the value of the handoffBehavior parameter.

ApplyAnimationClock(DependencyProperty, AnimationClock)

套用指定 AnimationClock 的效果至指定相依性屬性。Applies the effect of a given AnimationClock to a given dependency property.

public:
 void ApplyAnimationClock(System::Windows::DependencyProperty ^ dp, System::Windows::Media::Animation::AnimationClock ^ clock);
public void ApplyAnimationClock (System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationClock clock);
abstract member ApplyAnimationClock : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationClock -> unit
Public Sub ApplyAnimationClock (dp As DependencyProperty, clock As AnimationClock)

參數

dp
DependencyProperty

要繪製的 DependencyPropertyThe DependencyProperty to animate.

clock
AnimationClock

繪製屬性的 AnimationClockThe AnimationClock that animates the property.

另請參閱

ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

套用指定 AnimationClock 的效果至指定相依性屬性。Applies the effect of a given AnimationClock to a given dependency property. AnimationClock 對任何目前動畫的效果,是由 handoffBehavior 參數的值所決定。The effect of the new AnimationClock on any current animations is determined by the value of the handoffBehavior parameter.

public:
 void ApplyAnimationClock(System::Windows::DependencyProperty ^ dp, System::Windows::Media::Animation::AnimationClock ^ clock, System::Windows::Media::Animation::HandoffBehavior handoffBehavior);
public void ApplyAnimationClock (System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationClock clock, System.Windows.Media.Animation.HandoffBehavior handoffBehavior);
abstract member ApplyAnimationClock : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationClock * System.Windows.Media.Animation.HandoffBehavior -> unit

參數

dp
DependencyProperty

要繪製的 DependencyPropertyThe DependencyProperty to animate.

clock
AnimationClock

繪製屬性的 AnimationClockThe AnimationClock that animates the property.

handoffBehavior
HandoffBehavior

決定新的 AnimationClock 如何轉換自或影響屬性上任何目前的動畫。Determines how the new AnimationClock will transition from or affect any current animations on the property.

另請參閱

適用於