Tuesday, October 12, 2010

WPF Dispatcher

   1:  guiControl.Dispatcher.Invoke(
   2:      System.Windows.Threading.DispatcherPriority.Normal,
   3:      new Action(() =>
   4:      {
   5:          // do stuff
   6:      }));
Ensure that GUI control manipulation is done in the GUI thread.

No comments:

Post a Comment