ClockController ClockController ClockController ClockController Class

Definition

Interactively controls a Clock.

public ref class ClockController sealed : System::Windows::Threading::DispatcherObject
public sealed class ClockController : System.Windows.Threading.DispatcherObject
type ClockController = class
    inherit DispatcherObject
Public NotInheritable Class ClockController
Inherits DispatcherObject
Inheritance
ClockControllerClockControllerClockControllerClockController

Remarks

Use a ClockController to interactively begin, pause, resume, seek, skip, stop, and remove a Clock. You can only interactively control root-level clocks.

Properties

Clock Clock Clock Clock

Gets the Clock controlled by this ClockController.

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
SpeedRatio SpeedRatio SpeedRatio SpeedRatio

Gets or sets the interactive speed of the target Clock.

Methods

Begin() Begin() Begin() Begin()

Sets the target Clock to begin at the next tick.

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Pause() Pause() Pause() Pause()

Stops the target Clock from progressing.

Remove() Remove() Remove() Remove()

Removes the Clock associated with this ClockController from the properties it animates. The clock and its child clocks will no longer affect these properties.

Resume() Resume() Resume() Resume()

Enables a Clock that was previously paused to resume progressing.

Seek(TimeSpan, TimeSeekOrigin) Seek(TimeSpan, TimeSeekOrigin) Seek(TimeSpan, TimeSeekOrigin) Seek(TimeSpan, TimeSeekOrigin)

Seeks the target Clock by the specified amount when the next tick occurs. If the target clock is stopped, seeking makes it active again.

SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin)

Seeks the target Clock by the specified amount immediately. If the target clock is stopped, seeking makes it active again.

SkipToFill() SkipToFill() SkipToFill() SkipToFill()

Advances the current time of the target Clock to the end of its active period.

Stop() Stop() Stop() Stop()

Stops the target Clock.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Applies to

See also