private void App_BackRequested(object sender, BackRequestedEventArgs e)
{
// Check that no one has already handled this
if (!e.Handled)
{
// Default is to navigate back within the Frame
Frame frame = Window.Current.Content as Frame;
if (frame.CanGoBack)
{
frame.GoBack();
// Signal handled so the system doesn't navigate back
// through the app stack
e.Handled = true;
}
}
}