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.
public:
event TypedEventHandler<GameTransportControls^ , GameTransportControlsButtonPressedEventArgs^ >^ ButtonPressed {
EventRegistrationToken add (TypedEventHandler<GameTransportControls^ , GameTransportControlsButtonPressedEventArgs^ >^ value);
void remove (EventRegistrationToken token);
}
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.
Namespace: Windows.Xbox.Media
Metadata: windows.winmd