title: Using the C# Dispatcher in WPF Applications
body: <p>I'm building a chat client and am not 100% sure on how to use the <code>dispatcher</code>. So the question is I have a method as such:</p>
  
  <pre><code>public void LostConnection()
  {
      myGUI.chatBox.AppendText("Lost connection to room: "+ myGUI.UsernameText.ToString() + "\r\n");
  }
  </code></pre>
  
  <p>Do i need to surrond the statement within <code>(myGUI.chatBox... )</code> with a <code>Dispatcher.Invoke</code>? I appreciate any help.</p>