title: The calling thread must be STA, because many UI components require this while navigation in wpf
body: <p>am doing a project in wpf.
  i navigate from a window to a form and when i navigate to another window it generate the following error.
  thanks in advance.</p>
  
  <pre><code>The calling thread must be STA, because many UI components require this
  </code></pre>
  
  <p>verificationform.cs</p>
  
  <pre><code>if (result.Verified)
              {
                  MakeReport("The fingerprint was VERIFIED.");
                  Home h = new Home();
                  this.Hide();
                  h.Show();
              }
  </code></pre>
  
  <p>==========================================================</p>
  
  <pre><code>public partial class Home : Window
  {
      public Home()  ////######error occurs here!!!
      {
  
          InitializeComponent();
          labelNAME.Content = (string)Application.Current.Properties["name"];
      }
  }
  </code></pre>