Export (0) Print
Expand All

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)

'Declaration
Public Sub ApplyAnimationClock ( _
	dp As DependencyProperty, _
	clock As AnimationClock _
)

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 Nothing, 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
Show:
© 2015 Microsoft