Export (0) Print
Expand All
Expand Minimize

MediaState Enumeration

Specifies the states that can be applied to a MediaElement for the LoadedBehavior and UnloadedBehavior properties.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

'Declaration
Public Enumeration MediaState
<object property="enumerationMemberName" .../>

Member nameDescription
CloseThe state used to close the media. All media resources are released (including video memory).
ManualThe state used to control a MediaElement manually. Interactive methods like Play and Pause can be used. Media will preroll but not play when the MediaElement is assigned valid media source.
PauseThe state used to pause the media. Media will preroll but remains paused when the MediaElement is assigned valid media source.
PlayThe state used to play the media. . Media will preroll automatically being playback when the MediaElement is assigned valid media source.
StopThe state used to stop the media. Media will preroll but not play when the MediaElement is assigned valid media source. Media resources are not released.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft