WPF - Update GUI from another thread

Post date: Feb 14, 2010 11:41:25 AM

private void SetTimeTextBlock() { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, (ThreadStart)delegate { TimeTextBlock.Text = CurrentTime; }); }