WPF中只能是UI线程才可以改变UI控件相关,当采用多线程工作时,可用以下代码获取

UI线程进行操作:

App.Current.Dispatcher.Invoke((Action)delegate()
{
    //codes
}

 

相关文章:

  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-01-27
  • 2021-09-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案