title: ShowDialog makes app window disappear from windows' Alt-Tab list?
body: <p>i am new to WPF, and i am trying to open a modal dialog from inside my main window:</p>
  
  <pre><code>
  public partial class MainWindow : Window
  {
      protected void OpenCommandExecuted(object target, ExecutedRoutedEventArgs e)
      {
          DataSearchWindow w = new DataSearchWindow();
  
          w.Owner = this;
          w.ShowDialog();
      }
      ...
  }
  </code></pre>
  
  <p>and XAML for my DataSearchWindow looks like this:</p>
  
  <pre><code>
  &lt;Window x:Class="DataSearchWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          ShowInTaskbar='False'
          WindowStartupLocation='CenterOwner'
          WindowStyle='ToolWindow'
          ...>
  ...
  &lt;/Window>
  </code></pre>
  
  <p>Everything works until I press Alt-Tab to switch to another application. When I do that my application disappears from the list shown when Alt-Tab is pressed. It is still in the taskbar and I can return to it using mouse, bu not with Alt-Tab. Has anyone seen this?</p>
  
  <p>konstantin</p>