Search code examples
c#wpfsnapstodevicepixels

What does SnapsToDevicePixels in WPF mean in layman terms?


Anybody? Say I have a Window Class and I give SnapsToDevicePixels = true? what happens?


Solution

  • It will enable pixel snapping for every element in your window as this property is inherited by child UI elements. It won't have an effect on the appearance of the window itself, though (i. e. window frame or similar), since windows reside on integral coordinates on the screen already, anyway.