Application Dispatcher and Control Dispatcher
问题 Assume i have control button with name "button1" and function with name "doSomething". Function "doSomething" is called from another thread. i have two method to call function doSomething from UI thread. First, from control button dispatcher this.button1.Dispatcher.BeginInvoke(new Action(() => { doSomething(); })); and Second, from application dispatcher this.Dispatcher.BeginInvoke(new Action(() => { doSomething(); })); The result is same, what is the real different ? 回答1: The same dispatcher