MediaState Enumeration
TOC
Collapse the table of content
Expand the table of content

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)

type MediaState

Member nameDescription
Close

The state used to close the media. All media resources are released (including video memory).

Manual

The 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.

Pause

The state used to pause the media. Media will preroll but remains paused when the MediaElement is assigned valid media source.

Play

The state used to play the media. . Media will preroll automatically being playback when the MediaElement is assigned valid media source.

Stop

The 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
Available since 3.0
Return to top
Show:
© 2016 Microsoft