Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Show:
© 2014 Microsoft