MediaElement::NaturalDuration Property
.NET Framework (current version)
Gets the natural duration of the media.
Assembly: PresentationFramework (in PresentationFramework.dll)
The value returned is independent of SpeedRatio.
NaturalDuration is not accurate until the MediaOpened event has been raised.
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: