Reputation: 3249
I have two rectangles on Canvas, one on top of the other.
The first is located at Y1, the second's height is H and its location is set to Y1 - H.
With this configuration I see double-sized border between them. SnapToDevicePixels is true for both rectangles.
How can I rid of this effect?
Upvotes: 1
Views: 124
Reputation: 153
Get rid of e.g. the upper rectangle's lower border like this:
BorderThickness="1,1,1,0"
(or -vice-versa, the lower rectangle's upper border)
Upvotes: 2