title: Displaying modal login dialog
body: <p>I'm trying to display a modal login dialog after the <code>MainWindow</code> has been shown. (Like in SSMS)</p>
  
  <p>I know this is not the MVVM approach but I'm using <code>MainWindow</code>'s <code>Loaded</code> event where I call following code:</p>
  
  <pre><code>private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
  {
      ViewModel.ShowLoginDialog();
  }
  </code></pre>
  
  <p>In the ViewModel I'm calling:</p>
  
  <pre><code>public void ShowLoginDialog()
  {
      var vm = new LoginControlViewModel();
      var window = new LoginWindow(vm);
      window.ShowDialog();
  }
  </code></pre>
  
  <p>Well the login dialog is shown, but the <code>MainWindow</code> only get's shown if the Dialog has been closed.</p>
  
  <p>How do I display the <code>MainWindow</code> and the LoginDialog at the same time?</p>