title: How do I update GUI after each iteration?
body: <p>I have a label and canvas representing a coordinate system. In the canvas there is a node, which should change it's place every time a calculation is made. This is done until a specific stopping criteria is meet.</p>
  
  <p>I also have a label containing coordinate info for the note. I want to be able to see the node and label update on every iteration(every time the calculation is made).</p>
  
  <p>I have looked a the dispatcher, but my GUI will only update when the calculations are done. Below is what I have tried doing with the Dispatcher for the label.</p>
  
  <pre><code>While(notDone = true){
  //Calculations made here
  
  Application.Current.Dispatcher.BeginInvoke(
                      DispatcherPriority.Background,
                      new Action(() =&gt; this.aLabel.Text = aString ));
  }
  </code></pre>
  
  <p>I have been looking at solutions for similar problems and some solutions involve threads. Do I have to use threads to update my GUI?</p>