有没有一种方法可以使控件对WPF中的鼠标事件透明? [英] Is there a way to make controls transparent to mouse events in WPF?
本文介绍了有没有一种方法可以使控件对WPF中的鼠标事件透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以让鼠标事件传递到后面的控件?
Is there a way that I can let mouse events pass through to controls behind?
推荐答案
当然,只需在控件上设置IsHitTestVisible="False"
.鼠标事件将通过它.
Sure, just set IsHitTestVisible="False"
on the control. Mouse events will pass through it.
这篇关于有没有一种方法可以使控件对WPF中的鼠标事件透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文