ContentElement.ApplyAnimationClock Methode
Definition
Wendet eine Animation auf eine angegebene Abhängigkeitseigenschaft für dieses Element an.Applies an animation to a specified dependency property on this element.
Überlädt
ApplyAnimationClock(DependencyProperty, AnimationClock) |
Wendet eine Animation auf eine angegebene Abhängigkeitseigenschaft für dieses Element an.Applies an animation to a specified dependency property on this element. Alle vorhandenen Animationen werden beendet und durch die neue Animation ersetzt.Any existing animations are stopped and replaced with the new animation. |
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) |
Wendet eine Animation auf eine angegebene Abhängigkeitseigenschaft für dieses Element an, wobei angegeben werden kann, was geschieht, wenn die Eigenschaft bereits eine laufende Animation aufweist.Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation. |
ApplyAnimationClock(DependencyProperty, AnimationClock)
Wendet eine Animation auf eine angegebene Abhängigkeitseigenschaft für dieses Element an.Applies an animation to a specified dependency property on this element. Alle vorhandenen Animationen werden beendet und durch die neue Animation ersetzt.Any existing animations are stopped and replaced with the new animation.
public:
virtual 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
override this.ApplyAnimationClock : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationClock -> unit
Public Sub ApplyAnimationClock (dp As DependencyProperty, clock As AnimationClock)
Parameter
Der Bezeichner für die zu animierende Eigenschaft.The identifier for the property to animate.
- clock
- AnimationClock
Die Animationsuhr, die die Animation steuert und deklariert.The animation clock that controls and declares the animation.
Implementiert
Hinweise
Um eine Animation aus einer Eigenschaft zu entfernen, geben Sie den Bezeichner für diese Eigenschaft als an, dp
und geben Sie clock
als an null
.To remove an animation from a property, specify the identifier for that property as dp
and specify clock
as null
. Dadurch wird die Animation entfernt, und die animierte Eigenschaft wird auf ihren Basiswert festgelegt.This removes the animation and the animated property is set to its base value. Die ursprünglich zugeordnete Animations Uhr wird jedoch nicht beendet.However, the originally associated animation clock is not stopped. Alle anderen Animationen, die dieser Uhr zugewiesen sind, werden weiterhin ausgeführt.Any other animations assigned to that clock will continue to run.
Gilt für:
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)
Wendet eine Animation auf eine angegebene Abhängigkeitseigenschaft für dieses Element an, wobei angegeben werden kann, was geschieht, wenn die Eigenschaft bereits eine laufende Animation aufweist.Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation.
public:
virtual 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
override this.ApplyAnimationClock : System.Windows.DependencyProperty * System.Windows.Media.Animation.AnimationClock * System.Windows.Media.Animation.HandoffBehavior -> unit
Public Sub ApplyAnimationClock (dp As DependencyProperty, clock As AnimationClock, handoffBehavior As HandoffBehavior)
Parameter
Die zu animierende Eigenschaft.The property to animate.
- clock
- AnimationClock
Die Animationsuhr, die die Animation steuert und deklariert.The animation clock that controls and declares the animation.
- handoffBehavior
- HandoffBehavior
Ein Wert aus der Enumeration.A value of the enumeration. Die Standardeinstellung ist SnapshotAndReplace, durch die eine vorhandene Animation beendet und durch die neue ersetzt wird.The default is SnapshotAndReplace, which will stop any existing animation and replace with the new one.
Implementiert
Hinweise
Um eine Animation aus einer Eigenschaft zu entfernen, geben Sie den Bezeichner für diese Eigenschaft als an, dp
und geben Sie clock
als an null
.To remove an animation from a property, specify the identifier for that property as dp
and specify clock
as null
. Dadurch wird die Animation entfernt, und die animierte Eigenschaft wird auf ihren Basiswert festgelegt.This removes the animation and the animated property is set to its base value. Die ursprünglich zugeordnete Animations Uhr wird jedoch nicht beendet.However, the originally associated animation clock is not stopped. Alle anderen Animationen, die dieser Uhr zugewiesen sind, werden weiterhin ausgeführt.Any other animations assigned to that clock will continue to run.