Control event propagation? #7332
Labels
legacy-area-controls
Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
platform/android 🤖
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
I have simple MAUI app with ContentPage containing Button with overlaying Grid control, e.g.:
I would expect that Grid control overlays Button therefore events (e.g. Button click) are not triggered on underlying control. This is not the case in the latest RC3 version. I tested similar scenario in XF 5 and it works as expected (button click event is not triggered). I also tried all sorts of scenarios with InputTransparent property on controls, with no success.
Steps to Reproduce
<Button VerticalOptions="Start" BackgroundColor="red" Clicked="Button_OnClicked" HeightRequest="100" Text="View 4" WidthRequest="100" /> <Grid BackgroundColor="#66000000" />
and click eventhandler on Page Cs code, e.g.:
private async void Button_OnClicked(object sender, EventArgs e)
{
await DisplayAlert("Message", "Button click event", "OK");
}
Because Grid overlays (hides) Button control click event should not trigger.
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12, API 31, emulator
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: