maui-gestures

Implement MAUI gesture recognizers for tap, swipe, pan, pinch, drag, drop, and pointer in XAML and C#.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Petelids/Sudoku --skill maui-gestures-petelids
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-gestures
Source: https://github.com/Petelids/Sudoku/tree/main/skills/maui-skills/maui-gestures
Command: npx skills add https://github.com/Petelids/Sudoku --skill maui-gestures-petelids

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MAUI apps need rich gesture interactions. This guide provides a comprehensive reference for implementing tap, swipe, pan, pinch, drag-and-drop, and pointer gesture recognizers in .NET MAUI, covering XAML and C# usage, and platform-specific differences.

Core Features & Use Cases

  • TapGestureRecognizer, SwipeGestureRecognizer, PanGestureRecognizer, PinchGestureRecognizer, DragGestureRecognizer, DropGestureRecognizer, and PointerGestureRecognizer guidance for building responsive UIs.
  • Strategies for combining multiple gestures on a single view, handling cross-platform behavior, and MVVM-friendly patterns with commands.
  • Use cases include interactive controls, gesture-driven navigation, and touch-first experiences across iOS, Android, and Windows.

Quick Start

Add appropriate GestureRecognizers to your MAUI views (tap, swipe, pan, pinch, drag, drop, and pointer) and handle events to implement your UI interactions.

Frequently Asked Questions about maui-gestures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement gesture recognition in .NET MAUI for tap, swipe, and pan interactions?

Gesture recognition in .NET MAUI is implemented by attaching specific recognizer classes to views. You add TapGestureRecognizer, SwipeGestureRecognizer, or PanGestureRecognizer to a view's GestureRecognizers collection and handle their events in XAML or C#.

Can I combine multiple gestures on a single MAUI view without conflicts?

Combining multiple gestures on a single MAUI view is supported by adding multiple recognizers to the view. You can attach tap, swipe, pan, and pinch recognizers simultaneously to build interactive controls with nuanced touch interactions.

What is the best way to handle pinch and drag-and-drop gestures in a cross-platform MAUI app?

The best way to handle pinch and drag-and-drop in a cross-platform MAUI app is using PinchGestureRecognizer for scaling and DragGestureRecognizer with DropGestureRecognizer for moving elements. These handle touch interactions across iOS, Android, and Windows.

Does PointerGestureRecognizer work for mouse interactions on Windows and touch on mobile in MAUI?

PointerGestureRecognizer works for mouse interactions on Windows and touch on mobile platforms in MAUI. It provides a unified approach to pointer events, handling cross-platform behavior for touch-first experiences and desktop interfaces.

Why do my MAUI gesture recognizers behave differently on iOS and Android?

MAUI gesture recognizers behave differently on iOS and Android due to platform-specific differences in touch handling. Understanding these platform variations and applying best practices ensures robust gesture recognition across iOS, Android, and Windows.

How do I bind MAUI gesture events to MVVM commands instead of using code-behind?

Binding MAUI gesture events to MVVM commands uses the Command property available on gesture recognizers like TapGestureRecognizer. This pattern separates UI interaction logic from views, maintaining clean MVVM architecture across your app.