点击控件 [英] tap on a control
问题描述
我正在开发一个通用应用程序,其中我有一个包含许多控件的网格。这是我的理解当我点击一个孩子控制我的水龙头或鼠标不会被网格确认,因为孩子将第一个得到控制,但事实并非如此。如果我点击子控件然后容器控件不应该收到点击,我怎么能防止
。
你的回复将非常感谢。
祝你好运
Agha
Agha Khan
请发布您已完成的代码。
以下链接可能有所帮助
http://stackoverflow.com/questions/22518200/how-to-prevent-child-from-firing-parents-tap-event
I am developing a universal app, where I have a grid with many controls. The is my understanding when I hit a child control my tap or mouse will not acknowledge by Grid, because child will the first get the control, but that is not the case. How can I prevent if I hit the child control then container control should not receive the click.
Your reply will be very much appreciated.
Best regards
Agha
Agha Khan
Please post the code you have done.
Following link may help
http://stackoverflow.com/questions/22518200/how-to-prevent-child-from-firing-parents-tap-event
这篇关于点击控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!