title: Updating label content within a method
body: <p>I need to change the WPF label content within a process,
  I tried this but no content change in real time. 
  where am I doing wrong?</p>
  
  <p>Event caller:</p>
  
  <pre><code>private void connect_button_MouseDown(object sender, MouseButtonEventArgs e)
  {
      Mouse.OverrideCursor = Cursors.Wait;
      labelStstusUpdate("Connecting.."); // Status changer
      config = new Configuration();
      bool status = config.connectViaUSB();
      Mouse.OverrideCursor = null;
      if (!status)
      {
          labelStstusUpdate("Disconnected");// Status changer
      }
      else
      {
          labelStstusUpdate("Connected");// Status changer
      }
  }
  </code></pre>
  
  <p>Status changer method:</p>
  
  <pre><code>private void labelStstusUpdate(string message)
  {
      Dispatcher.BeginInvoke(DispatcherPriority.Background, (SendOrPostCallback)delegate
      {
          available_amount_label.Content = message;
      }, null);
  }
  </code></pre>