您可以使用
Dispatcher.Invoke(Delegate, object[])
在
Application(或任何
UIElement)调度程序上。
您可以像这样使用它:
Application.Current.Dispatcher.Invoke(new Action(() => { }));要么
someControl.Dispatcher.Invoke(new Action(() => { }));
您可以使用
Dispatcher.Invoke(Delegate, object[])
在
Application(或任何
UIElement)调度程序上。
您可以像这样使用它:
Application.Current.Dispatcher.Invoke(new Action(() => { }));要么
someControl.Dispatcher.Invoke(new Action(() => { }));