Open Mano176 opened 5 months ago
Does this work with Border?
I added a reproduction project repository.
@mattleibow Sorry, I don't understand what you mean by "Does this work with Border?"
Verified on VS 17.10.0 Preview 3.0(8.0.20). Repro on Windows 11, Android 14.0-API34. Work as expected on iOS 17.2 and MacCatalyst. TestMauiApp.zip
I have somewhat of a similar issue, I have a frame inside of a contentview. The contentview is displayed on another page. The tap gesture does not work at all. I can put a button outside of the frame, add the command to the button and it works perfectly.
Does this work with Border?
I've tested it with <Border ...> instead of <Frame ...> and it seems to be working fine with Border. The visual appearance of Border is different though.
In new .NET MAUI projects Border should be used instead of Frame (still included for easier migration from Xamarin.Forms): https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/frame?view=net-maui-8.0
It's not working also with StackLayout
Description
When having a TapGestureRecognizer inside a Frame that has IsEnabled set, the TapGestureRecognizer behaves weird depending on the platform.
Steps to Reproduce
MainPage.xaml:
MainPage.xaml.cs:
If we initialize the IsFrameEnabled-Property like this
public bool IsFrameEnabled { get; set; } = true;
, the Frame behaves like expected.WinUI:
iOS:
Link to public reproduction project repository
https://github.com/Mano176/MauiTapGestureRecognizerRepo
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response