title: XAMLParseException in C# Application in Break Mode
body: <p>Well I am currently programming on a project where I use MovelViewModel and DependencyInjection. Furthermore, I am using a Database.</p>
  <p>This is my code which causes the error:</p>
  <pre><code> private readonly MusikContext db;
      private readonly IServiceProvider serviceProvider;
      
      public MainWindow(MusikContext db, IServiceProvider serviceprovider)
      {
          this.db = db
      this.serviceprovider = serviceprovider
          InitializeComponent();
      }
  </code></pre>
  <p>If I use the code like this:</p>
  <pre><code>  public MainWindow()
      {
  
          InitializeComponent();
      }
  </code></pre>
  <p>No error comes up but it opens two MainWindows</p>