MediaControl.ChannelDownPressed 事件

定义

注意

Windows 8.1后,MediaControl 可能会更改或不可用。 请改用 SystemMediaTransportControls

向应用程序发出 ChannelDown 命令时引发的事件。

/// [add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Media.MediaControlContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Media.MediaControlContract)]
// Register
static event_token ChannelDownPressed(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void ChannelDownPressed(event_token const* cookie) const;

// Revoke with event_revoker
static MediaControl::ChannelDownPressed_revoker ChannelDownPressed(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
// Register
static event_token ChannelDownPressed(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void ChannelDownPressed(event_token const* cookie) const;

// Revoke with event_revoker
static MediaControl::ChannelDownPressed_revoker ChannelDownPressed(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Media.MediaControlContract))]
[remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Media.MediaControlContract))]
public static event System.EventHandler<object> ChannelDownPressed;
[add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
[remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
public static event System.EventHandler<object> ChannelDownPressed;
function onChannelDownPressed(eventArgs) { /* Your code */ }
Windows.Media.MediaControl.addEventListener("channeldownpressed", onChannelDownPressed);
Windows.Media.MediaControl.removeEventListener("channeldownpressed", onChannelDownPressed);
- or -
Windows.Media.MediaControl.onchanneldownpressed = onChannelDownPressed;
Public Shared Custom Event ChannelDownPressed As EventHandler(Of Object) 

事件类型

属性

适用于