private void OnBackPressed(object sender, BackPressedEventArgs e)
{
var rootFrame = NavigationRoot as Frame;
if (rootFrame != null && rootFrame.CanGoBack)
{
rootFrame.GoBack();
// Indicate the back button press is handled so the app does not exit
e.Handled = true;
}
}
#endif