Closed glenn2223 closed 1 year ago
I've confirmed this is not a bug in Expander
.
The issue is that you've aded a GestureRecognizer to your Button
which is overriding the Clicked
action:
<Button x:Name="AddButton"
Clicked="AddClicked"
Text="Add"
HorizontalOptions="Start"
VerticalOptions="End"
WidthRequest="100">
<Button.GestureRecognizers>
<PointerGestureRecognizer PointerEntered="PointerGestureRecognizer_PointerEntered" />
</Button.GestureRecognizers>
</Button>
When you remove the GestureRecognizer
, the Clicked
event fires:
<Button x:Name="AddButton"
Clicked="AddClicked"
Text="Add"
HorizontalOptions="Start"
VerticalOptions="End"
WidthRequest="100">
</Button>
I do not know if this behavior is intended by the .NET MAUI engineering team. I recommend opening this Issue on the .NET MAUI GitHub Repo.
Ahh, I see. For some reason I thought I already had the gesture recogniser in place this when I switched from a horizontal stack to an expander - sorry about that.
Thanks for checking on this for me
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
After expanding the Expander, none of the buttons inside work - they should trigger a toast.
Windows works as expected
Expected Behavior
The click events to trigger
Steps To Reproduce
Link to public reproduction project repository
https://github.com/glenn2223/Community-Toolkit-Mail-Android-Expander-Issue
Environment
Anything else?
Sorry for the shoddy code 😁