.NET Framework Class Library
Clock..::.Controller Property

Gets a ClockController that can be used to start, pause, resume, seek, skip, stop, or remove this Clock.

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

Visual Basic (Declaration)
Public ReadOnly Property Controller As ClockController
Visual Basic (Usage)
Dim instance As Clock
Dim value As ClockController

value = instance.Controller
C#
public ClockController Controller { get; }
Visual C++
public:
property ClockController^ Controller {
    ClockController^ get ();
}
JScript
public function get Controller () : ClockController
XAML
You cannot set this property in XAML.

Property Value

Type: System.Windows.Media.Animation..::.ClockController
A ClockController if this is a root clock; otherwise, nullNothingnullptra null reference (Nothing in Visual Basic).
Remarks

Only root clocks can be interactively controlled.

Examples

A Clock object's ClockController property enables you to interactively start, pause, resume, seek, advance the clock to its fill period, and stop the clock. Only the root clock of a timing tree can be interactively controlled.

NoteNote:

There are other ways to interactively control animations that don't require you to work directly with clocks: you can also use Storyboards. Storyboards are supported in both markup and code. For an example, see How to: Animate a Property by Using a Storyboard or the Animation Overview.

In the following example, several buttons are used to interactively control an animation clock.

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