private void ClosePopup(object sender, XBackRequestedEventArgs e) { // Restart Required if (RestartMask.State == ControlState.Active) { return; } // Go back LoadingMask.HandleBack(Frame, e); Dispose(); }