private void OnBackRequested( object sender, XBackRequestedEventArgs e ) { if ( !Frame.CanGoBack ) { e.Handled = true; PopupFrame.Content = null; } }