views:

81

answers:

1

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?

+3  A: 

Call Dispatcher.CheckAccess.

itowlson
Grr. I hate it when they hide useful functions from the Intillisense.
Jonathan Allen