Maintains the run-time state of an AnimationTimeline and processes its output values.
Namespace:
System.Windows.Media.Animation
Assembly:
PresentationCore (in PresentationCore.dll)
Visual Basic (Declaration)
Public Class AnimationClock _
Inherits Clock
Dim instance As AnimationClock
public class AnimationClock : Clock
public ref class AnimationClock : public Clock
public class AnimationClock extends Clock
You cannot directly create an instance of this class in XAML.
AnimationClock objects are generated from AnimationTimeline objects. An AnimationTimeline describes an animation's output values, duration, begin time, end time, and other fundamental animation information. An AnimationClock processes the animation values described by an AnimationTimeline object.
This example shows how to use Clock objects to animate a property.
There are three ways to animate a dependency property:
Storyboard objects and the BeginAnimation method enable you to animate properties without directly creating and distributing clocks (for examples, see How to: Animate a Property by Using a Storyboard and How to: Animate a Property Without Using a Storyboard); clocks are created and distributed for you automatically.
The following example shows how to create an AnimationClock and apply it to two similar properties.
For an example showing how to interactively control a Clock after it starts, see How to: Interactively Control a Clock.
System..::.Object
System.Windows.Threading..::.DispatcherObject
System.Windows.Media.Animation..::.Clock
System.Windows.Media.Animation..::.AnimationClock
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0
Reference