title: Why I can't call 'new Window().ShowDialog()' 2 times in Application startup?
body: <p>Here's the XAML code:</p>
  
  <pre><code>&lt;Application x:Class="WpfApplication2.App"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               Startup="Application_Startup" /&gt;
  </code></pre>
  
  <p>Backing code:</p>
  
  <pre><code>using System.Windows;
  
  namespace WpfApplication2
  {
      public partial class App : Application
      {
          private void Application_Startup(object sender, StartupEventArgs e)
          {
              new Window().ShowDialog();
              new Window().ShowDialog();
          }
      }
  }
  </code></pre>
  
  <p>Window shows only one time and then application exits. Why??</p>
  
  <p><strong>UPDATE:</strong> I know that windows should show up consequently. But after I close first window second does not show up <em>at all</em></p>