Start WPF application with WinForms window
<p>I have <code>WPF</code> application with some <code>WPF</code> windows. But my main window is <code>WinForms</code> and I need to start program with it. But how can I do this? This is my <code>App.xaml</code> file:</p>

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

<p>If I try to replace <code>StartupUri="UI/MainWindow.xaml"</code> with <code>StartupUri="UI/Form1.cs"</code>, I get <code>"System.IO.IOException", "Cannot find "ui/form1.cs"</code>. Is it even possible to start my app with <code>WinForms</code> window?</p>