Open etadzeta opened 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Can repro this issue at Android platform on the latest 17.11 Preview 1(8.0.40/8.0.21/8.0.3), and works fine on Windows platform.
@etadzeta if you set InputTransparent to true on the Picker does that let the gesture propagate to the grid?
@PureWeen thanks for the comment, I've tried it and yes it indeed works as expected for disabled
Picker. However if I don't set this InputTransparent
parameter to true
I have correct and expected behaviour in iOS. I still think this is an issue, because in Xamarin such control worked correctly with same settings on both platforms.
For now I'll use this parameter as a workaround, thanks
Description
For some reason if I have a disabled
In this example the Grid's GestureRecognizer points to existing method to update the counter and text on the button.
Picker
inside aGrid
I cannot use GestureRecognizer attached toGrid
(parent container) with Android, it does not fire if I click directly on Picker, so I assume it intercepts with Picker built-in click listener. In attached screenshot I paintedGrid
to Red color, andPicker
to Gray, and GestureRecognizer is only hit if I click on a Red area.The expected behaviour in short - I should see updated text on a button whenever I click Red or Gray area (parent Grid or Picker view itself), however it does not work on Android. I can trigger GestureRecognizer attached method only if I click directly on Grid (Red area). Everything works as expected on iOS, the button is updated if I click on any area (Grid or Picker)
Steps to Reproduce
Open
MainPage.xaml
and add a grid with disabled picker beforeButton
from initial template. Add aGestureRecognizer
toGrid
poiniting to existing methodOnCounterClicked
. The file will look like3) Click on Picker (Gray area), expected result - button's text is changed with updated counter value.
Link to public reproduction project repository
No response
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android API 34
Did you find any workaround?
No response
Relevant log output
No response