WPF 出现“调用线程无法访问此对象,因为另一个线程拥有该对象”

引起这种错误多半是由于在非UI线程刷新界面,解决此问题可以使用Dispatcher

this.Dispatcher.Invoke(new Action(() =>
            {
                UpdateUI(string infor);
            }));
原文地址:https://www.cnblogs.com/sunqiliang/p/5386585.html