c# - Windows phone 8.1 BackButton Navigation issue -


i developing windows phone 8.1 silver light application. in application there many screens. pages navigating perfectly.

my issue when press on button(windows phone button) pages going previous pages. want stop button navigation in application. followed below link not succeeded. https://social.msdn.microsoft.com/forums/windowsapps/en-us/131a99ce-53a4-4389-81e9-7801af57b78b/used-hardwarebuttonsbackpressed-handler

could 1 advise me.

try button on xaml.cs page :

protected override void onbackkeypress(system.componentmodel.canceleventargs e) {         base.onbackkeypress(e);         if (navigationservice.cangoback)         {             while (navigationservice.removebackentry() != null)             {                 navigationservice.removebackentry();             }         }  } 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -