title: Dialog Window Gets Lost Behind Other Windows
body: <p>I'm new to WPF so this is probably a pretty easy problem.  I open a dialog window using ShowDialog().  Then, if I click into another window that's fullscreen or just covers my dialog, it's difficult to get back to the dialog.  The icon that shows up in the taskbar takes me back to the main WPF window but the dialog stays hidden behind the other window.  I either have to minimize the blocking window or Alt-Tab back into my application (which will show the dialog but leave the main window hidden).</p>
  
  <p>The definition for the window looks like:</p>
  
  <pre><code>&lt;Window x:Class="MyProject.MyWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          ResizeMode="CanResizeWithGrip"
          ShowInTaskbar="False"
          WindowStartupLocation="CenterOwner"
          Width="750"
          Height="565"
          Title="MyWindow"&gt;
  </code></pre>
  
  <p>I'm opening it like:</p>
  
  <pre><code>var dlg = new MyWindow();
  if (dlg.ShowDialog() != true)
      return;
  </code></pre>