title: Login Window in WPF Prism
body: <p>I'm implementing a login window before my shell runs. How will I run the code and say that after authentication in the login window, proceed with the execution of shell application.</p>
  
  <p>Here is my initial code:</p>
  
  <p><strong>LoginViewModel.cs</strong></p>
  
  <pre><code>public event EventHandler LoginCompleted;
      private void RaiseLoginCompletedEvent()
      {
          LoginCompleted?.Invoke(this, EventArgs.Empty);
      }
  </code></pre>
  
  <p><strong>Bootstraper.cs from the Shell</strong></p>
  
  <p><a href="https://i.stack.imgur.com/IO1SD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IO1SD.png" alt="enter image description here"></a></p>
  
  <p>My problem here is that I cannot instantiate my LoginModel since the constructor of my Model has a parameter to use my Services Interface.</p>
  
  <p><a href="https://i.stack.imgur.com/LwPvi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LwPvi.png" alt="enter image description here"></a></p>
  
  <p>Is there any solution for this? Thanks!</p>