MediaClock Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Maintains the timing state for media through a MediaTimeline.

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


public class MediaClock : Clock

NameDescription
System_CAPS_protmethodMediaClock(MediaTimeline)

Initializes a new instance of the MediaClock class.

NameDescription
System_CAPS_pubpropertyController

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

System_CAPS_pubpropertyCurrentGlobalSpeed

Gets the rate at which the clock's time is currently progressing, compared to real-world time.(Inherited from Clock.)

System_CAPS_protpropertyCurrentGlobalTime

Gets the current global time, as established by the WPF timing system. (Inherited from Clock.)

System_CAPS_pubpropertyCurrentIteration

Get the current iteration of this clock. (Inherited from Clock.)

System_CAPS_pubpropertyCurrentProgress

Gets the current progress of this Clock within its current iteration. (Inherited from Clock.)

System_CAPS_pubpropertyCurrentState

Gets a value indicating whether the clock is currently Active, Filling, or Stopped. (Inherited from Clock.)

System_CAPS_pubpropertyCurrentTime

Gets this clock's current time within its current iteration.(Inherited from Clock.)

System_CAPS_pubpropertyDispatcher

Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)

System_CAPS_pubpropertyHasControllableRoot

Gets a value that indicates whether this Clock is part of a controllable clock tree.(Inherited from Clock.)

System_CAPS_pubpropertyIsPaused

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

System_CAPS_pubpropertyNaturalDuration

Gets the natural duration of this clock's Timeline.(Inherited from Clock.)

System_CAPS_pubpropertyParent

Gets the clock that is the parent of this clock. (Inherited from Clock.)

System_CAPS_pubpropertyTimeline

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

NameDescription
System_CAPS_pubmethodCheckAccess()

Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

System_CAPS_protmethodDiscontinuousTimeMovement()

Invoked when movement is discontinues.(Overrides Clock.DiscontinuousTimeMovement().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodGetCanSlip()

Retrieves a value that indicates whether the media clock can slip.(Overrides Clock.GetCanSlip().)

System_CAPS_protmethodGetCurrentTimeCore()

Retrieves a value that identifies the actual media time. This value can be used for slip synchronization.(Overrides Clock.GetCurrentTimeCore().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodSpeedChanged()

Invoked when the clock speed has changed.(Overrides Clock.SpeedChanged().)

System_CAPS_protmethodStopped()

Invoked when the clock is stopped.(Overrides Clock.Stopped().)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodVerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

NameDescription
System_CAPS_pubeventCompleted

Occurs when this clock has completely finished playing.(Inherited from Clock.)

System_CAPS_pubeventCurrentGlobalSpeedInvalidated

Occurs when the clock's speed is updated.(Inherited from Clock.)

System_CAPS_pubeventCurrentStateInvalidated

Occurs when the clock's CurrentState property is updated. (Inherited from Clock.)

System_CAPS_pubeventCurrentTimeInvalidated

Occurs when this clock's CurrentTime becomes invalid. (Inherited from Clock.)

System_CAPS_pubeventRemoveRequested

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

.NET Framework
Available since 3.0

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

Return to top
Show: