Just Code‎ > ‎

Uppdatera GUI från en annan tråd i WPF

posted Aug 27, 2009, 1:09 AM by Peter Henell
private void SetTimeTextBlock()
{
this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, (ThreadStart)delegate
{
TimeTextBlock.Text
= CurrentTime;
});
}
Comments