Windows Phone 8.1 - Page Navigation : RRS feed


All replies

  • Good Way To Navigate on Windows Phone 8.1
    • Marked as answer by Marwan Nabil Tuesday, July 15, 2014 8:03 PM
    Tuesday, July 15, 2014 1:14 AM
  • your Welcome :)

    Tuesday, July 15, 2014 8:04 PM
  • How do you go back with the backbutton? I finally found out you had to handle the back button pressed event from the system and that it isn't embedded anymore but I have a problem. It now closes the new page and closes the app even though I can see the OnnavigatedTo method ran in the old window. Have you had a similar problem? 

    Love, praise, and worship God :)

    • Proposed as answer by ImDaFrEaK Saturday, August 23, 2014 7:33 PM
    • Unproposed as answer by ImDaFrEaK Saturday, August 23, 2014 7:33 PM
    Saturday, August 23, 2014 7:21 PM
  • Ok, I figured it out. I placed the backpressed handler in both the navigated to page and the main page and they both capture the event so it's application wide. Therefore I just left it in the main page. What I had to do though was, even after a frame back, make sure it was handled. I guess it gets bubbled all the way up to somewhere in the application to close it down. I'm not sure but adding e.Handled = true; worked.

     void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
                if (Frame.CanGoBack)
                    e.Handled = true; //I had to add this here

    Love, praise, and worship God :)

    Saturday, August 23, 2014 7:36 PM
  • You Can Back By This Code Snippet

    Monday, September 1, 2014 9:05 AM