Why can't I tap/click blank areas inside of a Border/ContentControl without setting the child's background to transparent?

痴心易碎 提交于 2019-11-29 15:24:39

An object with no background is usually called as hollow or non-hittable in XAML terms. So it is must to set a background to make the object respond to hits. To achieve hit test for an transparent object, you should set the background to transparent.

More information about hit testing

http://msdn.microsoft.com/en-us/library/ms752097.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!