Any tips for working with device pixel snapping in WPF

Many controls in WPF have this pixel binding of the device (as described on MSDN ). I simply often forget to install it, and then later discover that because of this, something sometimes seems strange.

What do people use to solve this problem?

+3
source share
2 answers

The SnapsToDevicePixels property is inherited through the element tree.

I always installed SnapsToDevicePixels="True"for each window, and all children inherit value.

(But I have no assumptions on how to remember it for each window.)

+6
source

SnapsToDevicePixels = "True" OxyPlot, ... . OxyPlot PlotView SnapToDevicePixels .

0

Source: https://habr.com/ru/post/1734630/


All Articles