c# - How to put button inside grid that can be tapped in Windows 8.1 app? -
i'm developing app windows 8.1. have grid can tapped, , want put button inside grid provide finer function. should when click button, event inside grid not triggered. code structure this
<grid tapped = "ongridtapped" background = "transparent"> <button tapped = "onbuttontapped"/> </grid>
i cannot have access bringtofront()
or zindex
problem.
inside onbuttontapped(object sender, tappedroutedeventargs e)
add e.handled = true
stop tap event bubble grid solve problem
Comments
Post a Comment