maui-gestures

Implement and combine gesture recognizers in .NET MAUI apps.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/snailb1007/snail-codex-skills --skill maui-gestures-snailb1007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-gestures
Source: https://github.com/snailb1007/snail-codex-skills/tree/main/skills/maui-gestures
Command: npx skills add https://github.com/snailb1007/snail-codex-skills --skill maui-gestures-snailb1007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a practical guide for implementing and composing .NET MAUI gesture recognizers (Tap, Swipe, Pan, Pinch, Drag-and-Drop, and Pointer) across platforms to create responsive and accessible user interfaces.

Core Features & Use Cases

  • Guidance on configuring and combining multiple recognizers on a single view to enable rich touch and pointer interactions.
  • Coverage of platform differences, common pitfalls, and MVVM-friendly patterns for binding commands to gesture events.
  • Real-world scenarios illustrating how to handle gestures in XAML and C#, including hover support with PointerGestureRecognizer and gesture conflict resolution.

Quick Start

Add a GestureRecognizers collection to a MAUI view and wire up TapGestureRecognizer, PanGestureRecognizer, PinchGestureRecognizer, or PointerGestureRecognizer to enable cross-platform gesture handling.

Frequently Asked Questions about maui-gestures

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

FAQPage Schema
How do I handle tap, swipe, and pan gestures in .NET MAUI?

To handle tap, swipe, and pan gestures in .NET MAUI, add a GestureRecognizers collection to your view and wire up TapGestureRecognizer, SwipeGestureRecognizer, or PanGestureRecognizer in XAML or C#.

Can I combine multiple gesture recognizers on a single MAUI view?

Yes, you can combine multiple gesture recognizers on a single MAUI view to enable rich touch interactions, while addressing platform differences and resolving gesture conflicts.

How do I bind MAUI gesture events to MVVM commands?

You can bind MAUI gesture events to MVVM commands by applying MVVM-friendly patterns that wire commands directly to gesture recognizer events in your XAML or C# code.

Does .NET MAUI support pointer hover interactions for cross-platform apps?

Yes, .NET MAUI supports pointer hover interactions for cross-platform apps by applying the PointerGestureRecognizer to handle hover states across different platforms.

What is the best way to resolve gesture conflicts in .NET MAUI?

The best way to resolve gesture conflicts in .NET MAUI is to follow guidance on platform differences and best practices when configuring overlapping recognizers like pinch and pan.

Why are my drag-and-drop and pinch gestures not working together in MAUI?

Drag-and-drop and pinch gestures may not work together in MAUI due to gesture conflicts or platform differences, requiring specific configuration and error handling to function correctly.