What are the differences between Dispatcher.CurrentDispatcher
(in System.Windows.Threading
) and Application.Current.Dispatcher
(in System.Windows
)?
My gut tells me that Application.Current.Dispatcher
will never change and is global to all threads in the current application, while Dispatcher.CurrentDispatcher
may create a new instance of Dispatcher
depending on the thread from which it was called.
Is that correct?
If it is, is the purpose of Dispatcher.CurrentDispatcher
primarily for multi-threaded UI?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…