Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Animatable.ApplyAnimationClock Method (DependencyProperty, AnimationClock, HandoffBehavior)

Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used.

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

public void ApplyAnimationClock (
	DependencyProperty dp,
	AnimationClock clock,
	HandoffBehavior handoffBehavior
)
public final void ApplyAnimationClock (
	DependencyProperty dp, 
	AnimationClock clock, 
	HandoffBehavior handoffBehavior
)
public final function ApplyAnimationClock (
	dp : DependencyProperty, 
	clock : AnimationClock, 
	handoffBehavior : HandoffBehavior
)
You cannot use methods in XAML.

Parameters

dp

The property to animate.

clock

The clock with which to animate the specified property. If handoffBehavior is SnapshotAndReplace and clock is a null reference (Nothing in Visual Basic), all animations will be removed from the specified property (but not stopped). If handoffBehavior is Compose and clock is a null reference (Nothing in Visual Basic), this method has no effect.

handoffBehavior

A value that specifies how the new animation should interact with any current animations already affecting the property value.

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

The following example shows how to apply animation clocks using different HandoffBehavior settings.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft