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.

No comments:

Post a Comment