Showing posts with label Dispatcher. Show all posts
Showing posts with label Dispatcher. Show all posts

Tuesday, October 12, 2010

WPF Dispatcher

guiControl.Dispatcher.Invoke(
    System.Windows.Threading.DispatcherPriority.Normal,
    Action(() =>
    {
        // do stuff
    }));
Ensure that GUI control manipulation is done in the GUI thread.