title: Unit Testing WPF UserControls
body: <p>Is it possible to test my WPF UserControls from NUnit (or similar)? If I create an instance of the usercontrol in a unit test like so:</p>
  
  <pre><code>// Create an instance of the WPF UserControl
  var view = new ChildrenListView();
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>"The calling thread must be STA, because many UI components require this"
  </code></pre>
  
  <p>I get the feeling I'm missing something very important here.</p>