Tuesday, April 9, 2013

Overriding the Back Key in Windows Phone


Here is the code to override the e Back Key in Windows Phone



<phone:PhoneApplicationPage

x:Class="PhoneApp1.MainPage"



shell:SystemTray.IsVisible="True"

BackKeyPress="PhoneApplicationPage_BackKeyPress">
In code:

private void PhoneApplicationPage_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e)

{

e.Cancel = true; // Tell system we've handled it

// Hide the popup...

...

}

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...