Just Code‎ > ‎

WPF - Update GUI from another thread

posted Feb 14, 2010, 3:41 AM by Peter Henell
private void SetTimeTextBlock()
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, (ThreadStart)delegate
            {
                TimeTextBlock.Text = CurrentTime;
            });
        }
Comments