Assembly: PresentationCore (in PresentationCore.dll)
'Declaration Public Property Clock As MediaClock 'Usage Dim instance As MediaPlayer Dim value As MediaClock value = instance.Clock instance.Clock = value
Setting this property tells the MediaPlayer to be clock driven and will utilize the timing engine, placing the player in Clock mode. Any media that is playing is stopped and the Uri associated with the new clock is opened.
When the player is in clock mode, seeking using Position or calling the Play, Pause, or Stop methods will throw an InvalidOperationException. These operations are only available when the player is null.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.