System.Windows.Media.Animat ...


.NET Framework Class Library
AnimationClock Class

Maintains the run-time state of an AnimationTimeline and processes its output values.

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

Visual Basic (Declaration)
Public Class AnimationClock _
    Inherits Clock
Visual Basic (Usage)
Dim instance As AnimationClock
C#
public class AnimationClock : Clock
Visual C++
public ref class AnimationClock : public Clock
JScript
public class AnimationClock extends Clock
XAML
You cannot directly create an instance of this class in XAML.
Remarks

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.

Examples

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.

Inheritance Hierarchy

System..::.Object
  System.Windows.Threading..::.DispatcherObject
    System.Windows.Media.Animation..::.Clock
      System.Windows.Media.Animation..::.AnimationClock
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

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.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

Tags :


Page view tracker