Επεξεργασία

Κοινή χρήση μέσω


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
ClockController

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

Gets the Clock controlled by this ClockController.

Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
SpeedRatio

Gets or sets the interactive speed of the target Clock.

Methods

Begin()

Sets the target Clock to begin at the next tick.

CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Pause()

Stops the target Clock from progressing.

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()

Enables a Clock that was previously paused to resume progressing.

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)

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

SkipToFill()

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

Stop()

Stops the target Clock.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Applies to

See also