This is a bit strange as it does not appear in intellisense, but you can use:
var dispatcher = myDispatcherObject.Dispatcher; if (dispatcher.CheckAccess()) { }
Since all user interface components are inherited from DispatcherObject , this should solve your specific problem, but this does not apply to the user interface thread - it can be used for any dispatcher.
Steve greatrex
source share