public void Close(bool modalResult = false)
 {
     if (OnClosing(modalResult))
     {
         IsClosed     = true;
         _modalResult = modalResult;
         UiThread.Invoke(() => ViewModelManager.CloseViewModel(this));
         OnClosed();
     }
 }