Is there any way to get the UI thread's Dispatcher when you have no reference to any UI elements?
Dispatcher
You can grab the UI Dispatcher from the static application instance: Application.Current.Dispatcher
Application.Current.Dispatcher
You may want to check Application.Current for null first, as it can be cleared during a shutdown sequence.
Application.Current
1.4m articles
1.4m replys
5 comments
57.0k users