MediaPlayer.Position Property


Gets or sets the current position of the media.

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

member Position : TimeSpan with get, set

Property Value

Type: System.TimeSpan

The current position of the media.

If the player has an associated Clock, setting Position will throw an InvalidOperationException. Position cannot be set while the timing engine drives media playback.

Not typically used in XAML.

.NET Framework
Available since 3.0
Return to top