Gets or sets a value that determines whether the standard transport controls are enabled.
true if the standard transport controls are enabled; otherwise, false.
If AreTransportControlsEnabled is true, the standard transport controls are enabled and will be displayed on the MediaElement.
If AreTransportControlsEnabled is false, the standard transport controls are not enabled and will not be displayed. If you create custom transport controls for your app, you probably want to set this to false.
The transport controls will hide themselves after a short period of no user interaction with the MediaElement. They will reappear when the user interacts with the MediaElement.
The standard transport controls provides the following UI, depending on the type of media.
|Play button||Play, Pause||Yes||Yes||Button icon changes to denote current state.|
|Mute button||Muted, Not Muted||Yes||Yes||Button icon changes to denote current state.|
|Remaining time||Yes||Yes||Displays time in 1 second increments.|
|Volume slider||Yes||Yes||The volume slider is shown after the volume or mute buttons have been pressed. It is automatically dismissed in 3 seconds unless it is being activity manipulated by the user or the pointer is over it.|
|Full window Button||Normal, full window||No||Yes||If you implement your own full window control, use the IsFullWindow property to enable and disable full window rendering. This insures system level optimizations are used during media playback.|
|Audio Language Button||Displays multiple audio tracks.||Yes||Yes||The control is only visible when the media has multiple audio tracks.|
|Elapsed Time||Yes||Yes||The remaining time is shown to the left of the position slider.|
|Zoom Button||Non-Zoom, Zoom||No||Yes||Toggles the MediaElement.Stretch between Uniform, which is the default, and UniformToFill.|
<MediaElement x:Name="mediaPlayer" Source="Videos/video1.mp4" Width="400" AutoPlay="False" AreTransportControlsEnabled="True" />
Minimum supported client
Minimum supported server
|Windows Server 2012 R2|