Can anybody give me more details on this?
I know that tap is coming from gestures, but I'd like to know more on WP7 events model.
For instance how following scenarions work:
- stackpanel with tap event and checkbox inside which handles click
- container with tap and any framework element also with tap, etc.
Which events have more priority and if is it possible to mask events?
What kind of ev开发者_如何转开发ent bubbling is used here from top to bottom or vice-versa?
If you're using WP7.1 SDK the easiest thing to make things consistent would be to use the Tap event everywhere (it's available on all UIElement derived controls). Tap events are bubbled up from the lowest control in the visual tree until a handler is found.
Then you don't need to worry about if/when Click and Tap will clash.
精彩评论