HardwareButtons.BackPressed | backpressed event

Applies to Windows Phone only

Occurs when the user presses the hardware Back button.

Syntax


function onBackPressed(eventArgs) { /* Your code */ }
 
// addEventListener syntax
hardwareButtons.addEventListener("backpressed", onBackPressed);
hardwareButtons.removeEventListener("backpressed", onBackPressed);
 
- or -

hardwareButtons.onbackpressed = onBackPressed;


Event information

DelegateEventHandler [JavaScript] | System.EventHandler<BackPressedEventArgs> [.NET] | Windows.Foundation.EventHandler<BackPressedEventArgs> [C++]

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.UI.Input
Windows::Phone::UI::Input [C++]

Metadata

Windows.winmd

See also

HardwareButtons

 

 

Community Additions

ADD
Show:
© 2014 Microsoft