title: how to close a WPF Dialog Window when the user clicks outside it
body: <p>I want to close a System.Windows.Window if the user clicks anywhere outside it. The Window is shown as a Dialogbox. How do I receive clicks outside a wpf window?</p>
  
  <pre><code>AppointmentDetailsView.ShowDialog();
  </code></pre>