tags:

views:

170

answers:

1

Many controls in WPF has this snap to device pixels (as explained here: http://msdn.microsoft.com/en-us/library/aa970908.aspx). I just often find myself forgetting to set it and then later discover that something sometimes looks odd because of this.

What do people use to deal with this issue?

+2  A: 

SnapsToDevicePixels property is inherited through the element tree.

I always set SnapsToDevicePixels=True on each Window, and all the children inherit the value.

(But I don't have any suggestion for how to remember to set it on each Window.)

Edward