title: Prism 6 Add Authentication LoginWindow and Mainwindow
body: <p>I have created WPF C# Project with Prism 6,</p>
  
  <p>and my Project Based on </p>
  
  <p><a href="https://github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/17-BasicRegionNavigation" rel="nofollow noreferrer">https://github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/17-BasicRegionNavigation</a></p>
  
  <p>i want to Add <strong>Authentication</strong> to it :) , just simple <strong>Login</strong> and <strong>Log out</strong>...</p>
  
  <p>i have <code>MainWindow</code> and <code>LoginView</code> (Both Two Windows)
  my <code>Bootstraper.cs</code></p>
  
  <pre><code> class Bootstrapper : UnityBootstrapper
  {
      protected override DependencyObject CreateShell()
      {
          //return Container.Resolve&lt;MainWindow&gt;();
  
              return Container.Resolve&lt;LoginWindow&gt;();
      }
  
  
      protected override void InitializeShell()
      {
  
          Application.Current.MainWindow.Show();
  
      }
  
      protected override void ConfigureModuleCatalog()
      {
          var catalog = (ModuleCatalog)ModuleCatalog;
          catalog.AddModule(typeof(ModuleInitializer));
  
      }
  }
  </code></pre>
  
  <hr>
  
  <p>and my <code>LoginView</code> with Login Button:</p>
  
  <p>and if there is another Method to deal with authentication in MVVM? </p>
  
  <pre><code>    private void Login_Button_Click(object sender, RoutedEventArgs e)
  {
      Application.Current.MainWindow.Show();
      this.Close();
  
  }
  </code></pre>