Basically 开发者_如何学CI need to know whether I need to can Dispatcher.BeginInvoke or if it's not needed.
Thanks.
You can use the Dispatcher.CheckAccess
method. It returns true if you're on the same thread as the UI dispatcher, and false otherwise
Basically 开发者_如何学CI need to know whether I need to can Dispatcher.BeginInvoke or if it's not needed.
Thanks.
You can use the Dispatcher.CheckAccess
method. It returns true if you're on the same thread as the UI dispatcher, and false otherwise
精彩评论