Parent doesn't listen the gestures from its child #21278
Replies: 4 comments
-
@ShaliniSF79 do you want both gesture recognizers to fire when you tap the label? |
Beta Was this translation helpful? Give feedback.
-
Yes @PureWeen, I'm expecting, when I tap the label, both grid and label gestures have to be fired. |
Beta Was this translation helpful? Give feedback.
-
Can repro this issue at windows platform on the latest VS17.10.0 preview2. |
Beta Was this translation helpful? Give feedback.
-
Currently this behavior isn't supported. I've moved it to an idea to see if it's something we'd want to add. You could just fire on the grid and use the coordinates to see if it's clicking the label |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Issue:
I have a simple sample in .NET MAUI using Grid and Label controls. I've added tap gestures to both controls to listen for tap events. Currently, when I tap the grid control, its tap event is invoked, and the same for the label. For my requirement, I need to trigger the grid's(Parent) tap event when tapping the label's(Child) tap gesture. This doesn't work by default. It seems like behaviour. Is there a way to achieve this?
Steps to Reproduce
Tap me
button.Link to public reproduction project repository
https://github.com/ShaliniSF79/MauiDemo
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions