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

this.Dispatcher.Invoke(new Action(() =>
            {
                UpdateUI(string infor);
            }));

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-02-07
  • 2021-09-21
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2021-07-26
  • 2022-12-23
  • 2021-07-27
  • 2021-08-02
  • 2021-05-15
  • 2022-01-24
相关资源
相似解决方案