MediaPlaybackCommandManagerCommandBehavior MediaPlaybackCommandManagerCommandBehavior MediaPlaybackCommandManagerCommandBehavior MediaPlaybackCommandManagerCommandBehavior MediaPlaybackCommandManagerCommandBehavior Class

Definition

For use with a MediaPlaybackCommandManager object, this class allows you to enable and disable System Media Transport Controls commands and allows you to respond to changes in the enabled state of a command.

public : sealed class MediaPlaybackCommandManagerCommandBehavior
struct winrt::Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior
public sealed class MediaPlaybackCommandManagerCommandBehavior
Public NotInheritable Class MediaPlaybackCommandManagerCommandBehavior
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

Get an instance of this class by accessing one of the behavior properties of a MediaPlaybackCommandManager object.

Properties

CommandManager CommandManager CommandManager CommandManager CommandManager

Gets the MediaPlaybackCommandManager associated with the behavior.

EnablingRule EnablingRule EnablingRule EnablingRule EnablingRule

Gets or sets a value indicating whether a System Media Transport Controls command should always be enabled, should never be enabled, or if the system should automatically determine whether the command is enabled.

IsEnabled IsEnabled IsEnabled IsEnabled IsEnabled

Gets a value indicating whether a System Media Transport Controls command is currently enabled.

Events

IsEnabledChanged IsEnabledChanged IsEnabledChanged IsEnabledChanged IsEnabledChanged

Occurs when the enabled state of a System Media Transport Controls command changes.