WPF禁止跨线程调用线程UI,需使用委托方式完成线程调用,以下线程更新主线程UI方法
Application.Current.Dispatcher.Invoke((Action)delegate()
{
//要更新的UI代码
});
WPF禁止跨线程调用线程UI,需使用委托方式完成线程调用,以下线程更新主线程UI方法
Application.Current.Dispatcher.Invoke((Action)delegate()
{
//要更新的UI代码
});