Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ClockController Class

Interactively controls a Clock.

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.Media.Animation.ClockController

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

[<Sealed>]
type ClockController =  
    class 
        inherit DispatcherObject 
    end

The ClockController type exposes the following members.

  NameDescription
Public propertyClockGets the Clock controlled by this ClockController.
Public propertyDispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public propertySpeedRatioGets or sets the interactive speed of the target Clock.
Top

  NameDescription
Public methodBeginSets the target Clock to begin at the next tick.
Public methodCheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodPauseStops the target Clock from progressing.
Public methodRemoveRemoves the Clock associated with this ClockController from the properties it animates. The clock and its child clocks will no longer affect these properties.
Public methodResumeEnables a Clock that was previously paused to resume progressing.
Public methodSeekSeeks the target Clock by the specified amount when the next tick occurs. If the target clock is stopped, seeking makes it active again.
Public methodSeekAlignedToLastTickSeeks the target Clock by the specified amount immediately. If the target clock is stopped, seeking makes it active again.
Public methodSkipToFillAdvances the current time of the target Clock to the end of its active period.
Public methodStopStops the target Clock.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodVerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft