置于其上一个WPF窗口和用户控件上禁用鼠标事件 [英] disabling mouse events on a wpf window and the user controls placed on it
本文介绍了置于其上一个WPF窗口和用户控件上禁用鼠标事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有它的许多用户控件的WPF窗口。该事件/功能,我应该使用限制在主窗口中的鼠标输入,用户控制它承载
I have a wpf window with many user controls on it. which event/function should i use to restrict the mouse input on the main window and the user controls it is hosting
推荐答案
试用 UIElement.IsHitTestVisible 属性。
这篇关于置于其上一个WPF窗口和用户控件上禁用鼠标事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文