0

I know that Dispatcher.BeginInvoke is needed whenever I'm updating the GUI on a background thread. But how do I determine at runtime if it is needed?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447

1 Answers1

3

Call Dispatcher.CheckAccess.

itowlson
  • 73,686
  • 17
  • 161
  • 157