WPF启动调度器 :
Dispatcher.Invoke(new Action(() => { //你的代码 }));
C#跨线程操作UI
原文:https://www.cnblogs.com/snow-zhang/p/10106692.html