WindowsPhoneGeek

WPAppInfo

Login | Join (Why?)

rss rss rss
logo

Windows Phone and PhoneGap – Article #14 – Detect Hardware back button press

2/6/2012

source: windowsphonerocks.com

The default behaviour of the hardware back button in Windows Phone is to close the current application and go back to the previous App or screen that was launched prior to lauching this App . In Windows Phone 7 (Silverlight or XAML App ) , you can detect the hardware back button press by handling the PhoneApplicationPage_BackKeyPress event .

private void PhoneApplicationPage_BackKeyPress
(object sender, System.ComponentModel.CancelEventArgs e)
{
MessageBox.Show("Back Key Pressed");
}

...Read more

You can also follow us on Twitter @winphonegeek

Comments

Add comment to 'Windows Phone and PhoneGap – Article #14 – Detect Hardware back button press'

Comment

New! WindowsPhoneGeek Component Marketplace

Our Top Articles & Free books

Our Top Tips & Samples