UI stops rendering in WPF application
I was facing this right now :-(
After digging around, I found the cause in a new Style that was using a BitmapCacheBrush with a BitmapCache.
See repro here: https://github.com/dotnet-campus/wpf-issues/tree/master/BitmapCache
One Quick-Fix is to disable hardware acceleration global with a machine-wide registry setting:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration
https://stackoverflow.com/a/2169657/1196586
or for the specific wpf-control/Window
RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
https://stackoverflow.com/a/9802870/1196586
Or just don't use the BitmapCache.
Credit goes to:https://weblog.west-wind.com/posts/2017/Feb/13/Video-Rendering-Issues-for-WPF-Windows#workaround-disable-hardware-acceleration