SnapsToDevicePixels似乎在StackPanel中不起作用

时间:2011-11-25 09:58:59

标签: wpf .net-3.5 stackpanel blurry snapstodevicepixels

我在StackPanel中有更多扩展器(Orientation = Vertical)。当我扩展一个时,扩展的一个下面的其他人似乎是模糊的。就像它SnapsToDevicePixels = False一样。

我认为问题可能在StackPanel中,因为它还不支持.NET 3.5(我使用的)中的UseLayoutRounding。这可能或问题可能在其他地方吗?

我几乎无处不在地把SnapsToDevicePixels =“True”,但没有改变。

(字体大小为12因此不能为[1]:WPF Blurry fonts issue- Solutions

2 个答案:

答案 0 :(得分:5)

尝试设置UseLayoutRounding属性,它应调整布局以使用舍入为整数的位置。 http://www.switchonthecode.com/tutorials/wpfs-most-important-property-uselayoutrounding

答案 1 :(得分:0)

我用RenderOptions.EdgeMode =" Aliased"

解决了类似的问题