Prevent UI from freezing without additional threads

前端 未结 7 2044
耶瑟儿~
耶瑟儿~ 2020-12-16 04:48

What solutions do I have if I want to prevent the UI from freezing while I deserialize a large number of UI elements in WPF? I\'m getting errors complainig that the objects

相关标签:
7条回答
  • 2020-12-16 05:47

    You can still make your long processing in a separate thread, but when finished you have to synchronize with the UI thread by calling Dispatcher.BeginInvoke(your_UI_action_here)

    0 讨论(0)
提交回复
热议问题