Animatable.ApplyAnimationClock Method (DependencyProperty, AnimationClock)

Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used.

Namespace:  System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)

public void ApplyAnimationClock(
	DependencyProperty dp,
	AnimationClock clock
)

Parameters

dp
Type: System.Windows.DependencyProperty

The property to animate.

clock
Type: System.Windows.Media.Animation.AnimationClock

The clock with which to animate the specified property. If clock is null, all animations will be removed from the specified property (but not stopped).

Implements

IAnimatable.ApplyAnimationClock(DependencyProperty, AnimationClock)

Note that using this method to removing clocks from a property does not stop those clocks.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft