Is it possible to prevent a WPF control redraw?
-
13-10-2019 - |
Question
I have to update multiple child controls in a WPF control. I don't want the control redrawn until I have updated all its child controls.
Solution
If you are making all these updates on the UI thread (which is typically the case), then the WPF framework will do exactly what you desire!
To test it out, create an infinite loop that continually updates your control and child controls. The UI will freeze up as a result.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow