Prevent UI from freezing without additional threads

前端 未结 7 2052
耶瑟儿~
耶瑟儿~ 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:24

    I had a similar problem with my panel which was moving its items. The UI was freezing because I was using a DispatcherTimer at priority Loaded. The problem is gone as soon as I changed it to DispatcherPriority.Input.

提交回复
热议问题