title: WPF ProgressBar Control Dispatch still blocking UI Thread
body: <p>I am using WPF trying to run a Thread in the background that updates a progress bar. I don't wan to block the UI thread so I am running the following code. However the UI still blocked. It seems so simple, what am I doing wrong? </p>
  
  <pre><code>       Dispatcher.BeginInvoke(
          (ThreadStart) delegate(){                   
              for(double i = progressBar_ChangeProgress.Minimum;
                  i &lt; progressBar_ChangeProgress.Maximum;
                  i++)
                  {
                      for (int b = 0; b &lt; 100000000; b++) { }
                      progressBar_ChangeProgress.Value = i;
                  }
              EnableAllInputControls();
          }, DispatcherPriority.Background);
  </code></pre>