开发者

How can I get rid of border doubling while stacking two rectangles manually?

开发者 https://www.devze.com 2023-03-16 03:29 出处:网络
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.

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 r开发者_运维问答ectangles.

How can I rid of this effect?


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)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号