The Following enables a thread to update the main UI using a delegate. In this case MyTextBox.Text has an “x” added to its text property.
Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, new Action(() => this.MyTextBox.Text += "x"));