STAThread On Main Method
<p>I want to apply the [STAThread] attribute to my WPF application, I've read that I should do this with the following code:</p>

<pre><code>[STAThread]
public static void Main(){
    etc...
}
</code></pre>

<p>But I can't define a Main method in my code because my App class extends Application, and Application already has Main defined.</p>

<p><strong>So, how can I apply the [STAThread] attribute to this class?</strong></p>

<pre><code>namespace myNameSpace
{
    /// &lt;summary&gt;
    /// Interaction logic for App.xaml
    /// &lt;/summary&gt;
    public partial class App : Application
    {

    }
}
</code></pre>
