Why is there no command for pan gesture reconizer? tap gesture recognizer has one.

Steve Brooke 60 Reputation points
2023-10-18T23:53:50.3733333+00:00

using gesture recognizer in a graphics view. Tap gesture allows commands, while pan and pinch do not. I need to respond to these in the view model. Is there some technical reason that these gestures do not allow commands?

            <GraphicsView.GestureRecognizers>
                <PanGestureRecognizer Command="{Binding Panned}" />
                <PinchGestureRecognizer Command="{Binding Pinched}" />
                <TapGestureRecognizer Command="{Binding Tapped}"/>
            </GraphicsView.GestureRecognizers>

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,074 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.