This topic has not yet been rated - Rate this topic

MediaClock Class

Maintains the timing state for media through a MediaTimeline.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
public class MediaClock : Clock

The MediaClock type exposes the following members.

  Name Description
Protected method MediaClock Initializes a new instance of the MediaClock class.
Top
  Name Description
Public property Controller Gets a ClockController that can be used to start, pause, resume, seek, skip, stop, or remove this Clock. (Inherited from Clock.)
Public property CurrentGlobalSpeed Gets the rate at which the clock's time is currently progressing, compared to real-world time. (Inherited from Clock.)
Protected property CurrentGlobalTime Gets the current global time, as established by the WPF timing system.  (Inherited from Clock.)
Public property CurrentIteration Get the current iteration of this clock. (Inherited from Clock.)
Public property CurrentProgress Gets the current progress of this Clock within its current iteration. (Inherited from Clock.)
Public property CurrentState Gets a value indicating whether the clock is currently Active, Filling, or Stopped. (Inherited from Clock.)
Public property CurrentTime Gets this clock's current time within its current iteration. (Inherited from Clock.)
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. (Inherited from Clock.)
Public property IsPaused Gets a value that indicates whether this Clock, or any of its parents, is paused. (Inherited from Clock.)
Public property NaturalDuration Gets the natural duration of this clock's Timeline. (Inherited from Clock.)
Public property Parent Gets the clock that is the parent of this clock. (Inherited from Clock.)
Public property Timeline Gets the MediaTimeline that describes the controlling behavior of the clock.
Top
  Name Description
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Protected method DiscontinuousTimeMovement Invoked when movement is discontinues. (Overrides Clock.DiscontinuousTimeMovement().)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetCanSlip Retrieves a value that indicates whether the media clock can slip. (Overrides Clock.GetCanSlip().)
Protected method GetCurrentTimeCore Retrieves a value that identifies the actual media time. This value can be used for slip synchronization. (Overrides Clock.GetCurrentTimeCore().)
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method SpeedChanged Invoked when the clock speed has changed. (Overrides Clock.SpeedChanged().)
Protected method Stopped Invoked when the clock is stopped. (Overrides Clock.Stopped().)
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
Public event Completed Occurs when this clock has completely finished playing. (Inherited from Clock.)
Public event CurrentGlobalSpeedInvalidated Occurs when the clock's speed is updated. (Inherited from Clock.)
Public event CurrentStateInvalidated Occurs when the clock's CurrentState property is updated. (Inherited from Clock.)
Public event CurrentTimeInvalidated Occurs when this clock's CurrentTime becomes invalid. (Inherited from Clock.)
Public event RemoveRequested Occurs when the Remove method is called on this Clock or one of its parent clocks. (Inherited from Clock.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ