开发者

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

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

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

精彩评论

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