When I go to the login page with this code.
private void AppBarButton_Click_1(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(LoginPage));
}
But when I push the back button on the loginpage it does not go back to the first page. Did I do something wrong?
This is the code I use in my App.xaml.cs
void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame != null && rootFrame.CanGoBack)
{
e.Handled = true;
rootFrame.GoBack();
}
}
Fixed the issue by changing the blank pages to Basic pages. Now it will de all the backbutton navigation automatic.