title: Dispatcher Invoke(...) vs BeginInvoke(...) confusion
body: <p>I'm confused why I can't make this test counter application work with 2 (or more) simultaneous running countertextboxes with the use of "BeginInvoke" on my Dispatcher in the Count() method. </p>
  
  <p>You can solve the issue by replacing the BeginInvoke by an Invoke. But this doesn't solve my confusion.</p>
  
  <p>Here's the sample code I'm talking about:</p>
  
  <pre><code>public class CounterTextBox : TextBox
  {
      private int _number;
  
      public void Start()
      {
          (new Action(Count)).BeginInvoke(null, null);
      }
  
      private void Count()
      {
          while (true)
          {
              if (_number++ &gt; 10000) _number = 0;
              this.Dispatcher.BeginInvoke(new Action(UpdateText), System.Windows.Threading.DispatcherPriority.Background, null);    
          }
      }
  
      private void UpdateText()
      {
          this.Text = "" + _number;
      }
  }
  </code></pre>