title: How to use WPF Background Worker
body: <p>In my application I need to perform a series of initialization steps, these take 7-8 seconds to complete during which my UI becomes unresponsive. To resolve this I perform the initialization in a separate thread:</p>
  
  <pre><code>public void Initialization()
  {
      Thread initThread = new Thread(new ThreadStart(InitializationThread));
      initThread.Start();
  }
  
  public void InitializationThread()
  {
      outputMessage("Initializing...");
      //DO INITIALIZATION
      outputMessage("Initialization Complete");
  }
  </code></pre>
  
  <p>I have read a few articles about the <code>BackgroundWorker</code> and how it should allow me to keep my application responsive without ever having to write a thread to perform lengthy tasks but I haven't had any success trying to implement it, could anyone tell how I would do this using the <code>BackgroundWorker</code>?</p>