开发者

How do I tell WPF to treat my control's Padding as part of the control?

If I add some padding bet开发者_运维技巧ween the border of a control and the content, clicking/mousing over the padding doesn't work. When I mouseover the border, my trigger is activated. Then I reach the padding, and the mouseover deactivates. Then I reach the content and it reactivates.

How can I make it so the padding is considered part of the control?


I decided to just use a transparent inner border instead of padding.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜