CanSeek Property

Gets a value indicating if media can be repositioned by setting the value of the Position property.

Cannot be used in XAML.
value = object.CanSeek

Property Value


true if the media can be repositioned; otherwise, false.

This property is read-only. The default value is false.


Live streaming media cannot be paused. Therefore CanSeek returns false for any case where the MediaElement has loaded live streaming media.

Setting Position on a MediaElement that has opened and is playing streaming content does not throw an error. Instead the method call is ignored.

One scenario for this property is to check it after MediaOpened is fired, and potentially change the display characteristics of any "Scrub" control appears in UI if CanSeek is false.

Applies To


See Also

Media Overview
Supported Media Formats and Protocols

Community Additions