title: How to disable a wpf window?
body: <p>I dont know if this is possible but, I call the following method to show a window in wpf:</p>
  
  <pre><code>Window window = Window.Show();
  </code></pre>
  
  <p>After the window has already loaded, I want to disable the window i.e I dont want the user to be able to close the window until some condition is met...is this possible?</p>
  
  <p>I tried:</p>
  
  <p><code>window.IsEnabled = false</code>, This works but the user can still close the Window...</p>