title: FormSheet modal dialog won't hide
body: <p>I have a modal dialog that I show using the following code:</p>
  
  <pre><code>private void ShowUpdateDialog(float version, bool breakingChanges, string hint, string storeLink, string changelog, params string[] pars)
      {
          var dialog = new UpdatePopupController(this, new RectangleF(20, 20, 550, 600));
          dialog.WantsFullScreenLayout = true;
          dialog.ModalPresentationStyle = UIModalPresentationStyle.FormSheet;
          dialog.ModalTransitionStyle = UIModalTransitionStyle.FlipHorizontal;
          dialog.ModalInPopover = true;
          UIDevice.CurrentDevice.BeginGeneratingDeviceOrientationNotifications();
          dialog.ShowData(version, breakingChanges, hint, storeLink, changelog, pars);
          dialog.WillRotate(UIApplication.SharedApplication.StatusBarOrientation, 0);
          NavigationController.PresentModalViewController(dialog, true);
          dialog.BecomeFirstResponder();
      }
  </code></pre>
  
  <p>I get this result (that is what I expected):</p>
  
  <p><img src="https://i.stack.imgur.com/RKCk7.jpg" alt="Modal dialog showing"></p>
  
  <p>Now I want to implement closing the dialog by taping out of the gray content of the dialog. How can I do it? The dialog itself inherits from UIViewController.</p>