Поделиться через


MediaControl.StopPressed Событие

Определение

Примечание

Элемент MediaControl может быть изменен или недоступен для выпусков после Windows 8.1. Вместо этого используйте SystemMediaTransportControls.

Событие, возникающее при выполнении команды Stop для приложения.

/// [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 StopPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::StopPressed_revoker StopPressed(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 StopPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::StopPressed_revoker StopPressed(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> StopPressed;
[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> StopPressed;
function onStopPressed(eventArgs) { /* Your code */ }
Windows.Media.MediaControl.addEventListener("stoppressed", onStopPressed);
Windows.Media.MediaControl.removeEventListener("stoppressed", onStopPressed);
- or -
Windows.Media.MediaControl.onstoppressed = onStopPressed;
Public Shared Custom Event StopPressed As EventHandler(Of Object) 

Тип события

Атрибуты

Применяется к