title: Force WinForms Application.Run method to use WPF form
body: <p>I have an existing WinForms application. 
  In this application one form is called in separate thread:</p>
  
  <pre><code> var newDialogThread = new Thread(new ThreadStart(ShowMyForm));
   newDialogThread .Name = "CustomerViewThread";
   newDialogThread .IsBackground = true;
   newDialogThread .ApartmentState = ApartmentState.STA;
   newDialogThread .CurrentCulture = Config.CustomerCulture;
  
  public void ShowMyForm()
  {
    using(var myForm = new MyForm())
    {
       Application.Run(myForm );
     }
  }
  </code></pre>
  
  <p>Now customer wants to use WPF form instead of WinForms dialog.  Application will stay Winforms based.</p>
  
  <p>How properly to refactor this part of code so my WPF form will be called instead of Winforms?</p>
  
  <pre><code> public void ShowMyForm()
      {
        using(var myWpfForm = new MyWpfForm())
        {
            // Analog of Application Run?
           //Application.Run(myForm );
         }
      }
  </code></pre>
  
  <p>P.s. I think that its possible to create pure WPF window without hosting it to Winforms. And this is main case.</p>