开发者

Is there a way to make controls transparent to mouse events in WPF?

开发者 https://www.devze.com 2023-01-26 03:36 出处:网络
Is there a way that I can let mouse events pass through to controls behind开发者_Go百科?Sure, just set IsHitTestVisible=\"False\" on the control. Mouse events will pass through it.I usually solve thes

Is there a way that I can let mouse events pass through to controls behind开发者_Go百科?


Sure, just set IsHitTestVisible="False" on the control. Mouse events will pass through it.


I usually solve these kind of issues by adding handlers of child controls to the parent at construction. This way the 'click'-event for example activates a method that raises the 'click'-event of the parent.

0

精彩评论

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

关注公众号