You can update your graphics card and try it again, but that will not change anything. The reason is pretty simple. We all see that sometimes it depends on how fast / slower our computer works. Sometimes it works smoothly, because we do not have a large number of visual drawings. The reason is that the proper background color was not found on the graphics card at this point during the redrawing process. Your drivers are fine, not just because you are using Wpf. Other methods use the same mechanism for redrawing.
The first thing that WPF does is to clean up the dirty region that will be redrawn. The goal of dirty regions is to reduce the number of pixels sent to the merge phase of the GPU pipeline output. Here we see the black color. The window itself at this point does not have a background color or its background color is set to transparent, and therefore the GPU draws a black background for us. Things are done by async in wpf, which is good.
To fix this, you can set the color of the fix, such as "White" for the window. Then the WPF system will clear the dirty area, but will automatically fill it with white instead of black. This usually helps.
Match the color of the window or the color of the top layer. Do not let the GPU use black, and you should do everything. Btw Wpf is faster than WinForm, so don't worry.
source share