SnapsToDevicePixels seems to not work in StackPanel

1.2k Views Asked by At

I have more expanders in StackPanel (Orientation=Vertical). When I expand one, the others below the expanded one seem to be blured. Like it would SnapsToDevicePixels=False.

I think the problem could be in StackPanel because it doesn't support UseLayoutRounding in .NET 3.5 (which I use) yet. Is that possible or the problem could be elsewhere?

I put SnapsToDevicePixels="True" almost everywhere I could, but nothing changed.

(Font has size 12 so it couldn't be [1]: WPF Blurry fonts issue- Solutions)

2

There are 2 best solutions below

1
On

Try set UseLayoutRounding property it should adjust layout to use position rounded to integer. http://www.switchonthecode.com/tutorials/wpfs-most-important-property-uselayoutrounding

0
On

I solved a similar problem with RenderOptions.EdgeMode="Aliased"