.NET MAUI GestureRecognizers not working on certain controls

See original GitHub issue

This issue has been moved from a ticket on Developer Community.


[severity:It’s more difficult to complete my work]
The following is working perfectly fine:

<Frame>
  <Frame.GestureRecognizers>
    <TapGestureRecognizer Command="{Binding ExecuteCommand}" />
  </Frame.GestureRecognizers>
</Frame>

While this is not working:

<CheckBox>
  <CheckBox.GestureRecognizers >
    <TapGestureRecognizer Command="{Binding ExecuteCommand}"/>
  </CheckBox.GestureRecognizers>
</CheckBox>

The command is not executed.

The same goes for the Switch.

If this is intentional, what would be the proper way to bind a command to the Checkbox or Switch?


Original Comments

Feedback Bot on 7/17/2022, 08:01 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Depends on

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:20
  • Comments:45 (8 by maintainers)

github_iconTop GitHub Comments

8reactions
Greg-Bates-Trimblecommented, Mar 12, 2023

Is there any idea when this is going to get looked at or resolved? This is a serious issue which blocks any iOS releases.

7reactions
thoyscommented, Jul 5, 2023

Why is this issue not getting attention? This seems like a very basic feature that Maui needs to support. I keep on fighting with workarounds for Maui, it’s annoying.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.NET MAUI: Bug - GestureRecognizers are not working on ...
The bug we are addressing is related to TapGestureRecognizers not functioning as expected on specific Views, such as frames, in .NET MAUI apps....
Read more >
Navigation in .Net maui doesn't work - TapgestureRecognizer
Your Command is taking the wrong type of parameter. It should be: [RelayCommand] async void MenuListViewSelectedItem(MainMenuModel e) ...
Read more >
Recognize a tap gesture - .NET MAUI
NET Multi-platform App UI (.NET MAUI) tap gesture recognizer is used for tap detection and is implemented with the TapGestureRecognizer class.
Read more >
Image TapGestureRecognizer not working inside ...
i'm using MVVM pattern, i want to handle when user click on X icon, i'm using TapGestureRecognizer, but it isn't fired Does anyone...
Read more >
TabViewItem swipe not working in Android
Scenario 1: Controls with gesture recognizers ... See below example, but when a CollectionView is swiped over, the swipe does not work.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found