Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF rendering lines on window

Tags:

wpf

xaml

I have a wpf application that constantly produces odd straight lines (grey) across the screen. As the mouse moves around they appear and disappear. Sorry for the bad description but its hard to describe. I wonder if there is anything I can do about it.

screenshot

I have tried a few rendering options and so forth.

 <dxg:GridControl SnapsToDevicePixels="True"

and

RenderOptions.ClearTypeHint="Enabled"
                RenderOptions.BitmapScalingMode="NearestNeighbor"
                RenderOptions.EdgeMode="Aliased" 
like image 491
scottsanpedro Avatar asked May 22 '26 19:05

scottsanpedro


1 Answers

We have similar issues with big black vertical bars. Only resolved by switching to software only rendering:

System.Windows.Media.RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
like image 149
James Willock Avatar answered May 25 '26 08:05

James Willock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!