摘要:
解决 办法public void SomeMethod() { var task = System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action( () => { //自己要执行的语句 MessageBox.Show("开始"); } )); task.Completed += new EventHandler(task_Completed); } public void task_Completed(object sender, EventArgs e) {//自己要执行的语句 Messa 阅读全文