0

I am developing WP10 application and I am navigating through pages in my app. However, the default back button is not working as it is working with windows phone 8 and windows phone 8.1

When I click the default back button the application is closed. What I want is that it should navigate to page where navigation occurred.

I used below, it works in windows 10 but it doesn't work in mobile version.

SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
SystemNavigationManager.GetForCurrentView().BackRequested += Settings_BackRequested;

private void Settings_BackRequested(object sender, BackRequestedEventArgs e)
{
    if (Frame.CanGoBack)
       Frame.GoBack();
}

How I can handle the hardware back button in windows phone 10? Thanks!

ARH
  • 1,566
  • 3
  • 25
  • 56

1 Answers1

0

Solved it with Handling Back button in Windows 10 UWP

ARH
  • 1,566
  • 3
  • 25
  • 56
  • It looks down for me. Could you provide an actual answer? – Alex H Oct 07 '15 at 15:05
  • By default there is no home back button in windows 10, In order to control home back button, I followed that link and it solved the problem. – ARH Oct 10 '15 at 04:57