Originally Posted by ngame
Hi every one
In WP8 we could use
Protected Override Void OnbackKeyPress(....e)
Now I didn't find such thing in windows Phone 8.1 ! Can anyone help me with this ?
and my other Q is : where is the messagebox.show ? and also Isolated Storage ?!
Now I think get an absolutely Noooob again
instead of overriding OnbackKeyPress you have to register the event
Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;
void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
// your code
e.Handled = true; // if you wanna prevent that the "standard"-eventhandler is called and your app getting closed