GameTransportControls.ButtonPressed Event

Important The Windows.Xbox.Media namespace is deprecated from the November 2015 Xbox One XDK.
[Deprecated] Raised when a button is pressed on a GameTransportControls object.

Syntax

public:
event TypedEventHandler<GameTransportControls^ , GameTransportControlsButtonPressedEventArgs^ >^ ButtonPressed {
         EventRegistrationToken add (TypedEventHandler<GameTransportControls^ , GameTransportControlsButtonPressedEventArgs^ >^ value);
         void remove (EventRegistrationToken token);
}  

Remarks

Register a handler for the ButtonPressed event to integrate the system transport control button events with your app. Also, you must enable the individual transport control functionality, such as SystemMediaTransportControls.IsPlayEnabled, for handling the play event.

The GameTransportControlsButtonPressedEventArgs.Button Property indicates which button was pressed.

Requirements

Namespace: Windows.Xbox.Media

Metadata: windows.winmd

See also

Reference

GameTransportControls Class

GameTransportControls Members

Windows.Xbox.Media Namespace