MediaPlaybackCommandManager.IsEnabled Property

Definition

Gets or sets a value indicating whether the MediaPlaybackCommandManager is enabled.

public:
 property bool IsEnabled { bool get(); void set(bool value); };
bool IsEnabled();

void IsEnabled(bool value);
public bool IsEnabled { get; set; }
var boolean = mediaPlaybackCommandManager.isEnabled;
mediaPlaybackCommandManager.isEnabled = boolean;
Public Property IsEnabled As Boolean

Property Value

Boolean

bool

True if the MediaPlaybackCommandManager is enabled; otherwise, false.

Remarks

If your app scenario requires manual control of the System Media Transport Controls you can disable the MediaPlaybackCommandManager and using the events and properties of the SystemMediaTransportControls directly.

Note

If you disable the MediaPlaybackCommandManager by setting IsEnabled to false, it will break the link between the MediaPlayer the TransportControls provided by the MediaPlayerElement, so the built-in transport controls will no longer automatically control the playback of the player. Instead, you must implement your own controls to control the MediaPlayer.

Applies to