Application.Current.Dispatcher.BeginInvoke(new Action(() => { // your code here }));
更新窗体的UI元素
原文:http://www.cnblogs.com/52zmj/p/5463475.html