Error: No matching constructor found on type
<p>I have a WPF application where I am using multiple forms. There is one main form which gets opened when we start the application which is know as <code>MainWindow.xaml</code>. This form then have multiple forms which gets opened depending on the user option. There is a form <code>StartClassWindow.xaml</code>. Currently I am working on this form so I want it to start directly instead of <code>MainWindow.xaml</code>. So to do this I changed the <code>app.xaml startupuri</code>:</p>

<pre><code>&lt;Application x:Class="Class.App"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         DispatcherUnhandledException="Application_DispatcherUnhandledException"
         StartupUri="StartClassWindow.xaml"&gt;
&lt;Application.Resources&gt;

&lt;/Application.Resources&gt;
&lt;/Application&gt;
</code></pre>

<p>But then it started giving error like below:</p>

<blockquote>
  <p>No matching constructor found on type 'Class.StartClassWindow'. You
  can use the Arguments or FactoryMethod directives to construct this
  type.' Line number '3' and line position '9'.</p>
</blockquote>

<p>Here is the <code>StartClassWindow.xaml.cs</code>:</p>

<pre><code>namespace Class
{
    public partial class StartClassWindow : System.Windows.Window
    {

       public StartClassWindow(string classData)
       {
          InitializeComponent();
          className = classData;
          function();
       }
       //rest of the code.
    }
}
</code></pre>