MediaClock MediaClock MediaClock MediaClock Class


Maintains the timing state for media through a MediaTimeline.

public ref class MediaClock : System::Windows::Media::Animation::Clock
public class MediaClock : System.Windows.Media.Animation.Clock
type MediaClock = class
    inherit Clock
Public Class MediaClock
Inherits Clock


MediaClock(MediaTimeline) MediaClock(MediaTimeline) MediaClock(MediaTimeline) MediaClock(MediaTimeline)

Initializes a new instance of the MediaClock class.


Controller Controller Controller Controller

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

(Inherited from Clock)
CurrentGlobalSpeed CurrentGlobalSpeed CurrentGlobalSpeed CurrentGlobalSpeed

Gets the rate at which the clock's time is currently progressing, compared to real-world time.

(Inherited from Clock)
CurrentGlobalTime CurrentGlobalTime CurrentGlobalTime CurrentGlobalTime

Gets the current global time, as established by the WPF timing system.

(Inherited from Clock)
CurrentIteration CurrentIteration CurrentIteration CurrentIteration

Get the current iteration of this clock.

(Inherited from Clock)
CurrentProgress CurrentProgress CurrentProgress CurrentProgress

Gets the current progress of this Clock within its current iteration.

(Inherited from Clock)
CurrentState CurrentState CurrentState CurrentState

Gets a value indicating whether the clock is currently Active, Filling, or Stopped.

(Inherited from Clock)
CurrentTime CurrentTime CurrentTime CurrentTime

Gets this clock's current time within its current iteration.

(Inherited from Clock)
Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
HasControllableRoot HasControllableRoot HasControllableRoot HasControllableRoot

Gets a value that indicates whether this Clock is part of a controllable clock tree.

(Inherited from Clock)
IsPaused IsPaused IsPaused IsPaused

Gets a value that indicates whether this Clock, or any of its parents, is paused.

(Inherited from Clock)
NaturalDuration NaturalDuration NaturalDuration NaturalDuration

Gets the natural duration of this clock's Timeline.

(Inherited from Clock)
Parent Parent Parent Parent

Gets the clock that is the parent of this clock.

(Inherited from Clock)
Timeline Timeline Timeline Timeline

Gets the MediaTimeline that describes the controlling behavior of the clock.


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

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
DiscontinuousTimeMovement() DiscontinuousTimeMovement() DiscontinuousTimeMovement() DiscontinuousTimeMovement()

Invoked when movement is discontinues.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetCanSlip() GetCanSlip() GetCanSlip() GetCanSlip()

Retrieves a value that indicates whether the media clock can slip.

GetCurrentTimeCore() GetCurrentTimeCore() GetCurrentTimeCore() GetCurrentTimeCore()

Retrieves a value that identifies the actual media time. This value can be used for slip synchronization.

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

Invoked when the clock speed has changed.

Stopped() Stopped() Stopped() Stopped()

Invoked when the clock is stopped.

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)


Completed Completed Completed Completed

Occurs when this clock has completely finished playing.

(Inherited from Clock)
CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated

Occurs when the clock's speed is updated.

(Inherited from Clock)
CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated

Occurs when the clock's CurrentState property is updated.

(Inherited from Clock)
CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated

Occurs when this clock's CurrentTime becomes invalid.

(Inherited from Clock)
RemoveRequested RemoveRequested RemoveRequested RemoveRequested

Occurs when the Remove() method is called on this Clock or one of its parent clocks.

(Inherited from Clock)

Applies to

See also