Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Clock Members

Maintains run-time timing state for a Timeline.

The following tables list the members exposed by the Clock type.

  Name Description
Protected method Clock Initializes a new instance of the Clock class, using the specified Timeline as a template. The new Clock object has no children.
Top
(see also Protected Properties )
  Name Description
Public property Controller Gets a ClockController that can be used to start, pause, resume, seek, skip, stop, or remove this Clock.
Public property CurrentGlobalSpeed Gets the rate at which the clock's time is currently progressing, compared to real-world time.
Public property CurrentIteration Get the current iteration of this clock.
Public property CurrentProgress Gets the current progress of this Clock within its current iteration.
Public property CurrentState Gets a value indicating whether the clock is currently Active, Filling, or Stopped.
Public property CurrentTime Gets this clock's current time within its current iteration.
Public property Dispatcher  Gets the Dispatcher this DispatcherObject is associated with. (inherited from DispatcherObject)
Public property HasControllableRoot Gets a value that indicates whether this Clock is part of a controllable clock tree.
Public property IsPaused Gets a value that indicates whether this Clock, or any of its parents, is paused.
Public property NaturalDuration Gets the natural duration of this clock's Timeline.
Public property Parent Gets the clock that is the parent of this clock.
Public property Timeline Gets the Timeline from which this Clock was created.
Top
  Name Description
Protected property CurrentGlobalTime Gets the current global time, as established by the WPF timing system.
Top
(see also Protected Methods )
  Name Description
Public method CheckAccess  Determines whether the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method VerifyAccess  Enforces that the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Top
  Name Description
Protected method DiscontinuousTimeMovement When implemented in a derived class, will be invoked whenever a clock repeats, skips, or seeks.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetCanSlip Returns whether the Clock has its own external time source, which may require synchronization with the timing system.
Protected method GetCurrentTimeCore Gets this clock's current time within its current iteration.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method SpeedChanged When implemented in a derived class, will be invoked whenever a clock begins, skips, pauses, resumes, or when the clock's SpeedRatio is modified.
Protected method Stopped When implemented in a derived class, will be invoked whenever a clock is stopped using the Stop method.
Top
  Name Description
Public event Completed Occurs when this clock has completely finished playing.
Public event CurrentGlobalSpeedInvalidated Occurs when the clock's speed is updated.
Public event CurrentStateInvalidated Occurs when the clock's CurrentState property is updated.
Public event CurrentTimeInvalidated Occurs when this clock's CurrentTime becomes invalid.
Public event RemoveRequested Occurs when the Remove method is called on this Clock or one of its parent clocks.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.