avalonia-input-interaction

Implement Avalonia pointer, keyboard, gesture, focus, and drag-and-drop interactions.

27|2|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/linuxdevel/Avalonia-skills --skill avalonia-input-interaction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: avalonia-input-interaction
Source: https://github.com/linuxdevel/Avalonia-skills/tree/main/skills/avalonia/avalonia-input-interaction
Command: npx skills add https://github.com/linuxdevel/Avalonia-skills --skill avalonia-input-interaction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill centralizes and guides developers through handling Avalonia input, including pointer events, keyboard input, gestures, focus management, drag-and-drop, and hot keys, reducing boilerplate and common pitfalls.

Core Features & Use Cases

  • Pointer and keyboard event handling across Avalonia controls (PointerPressed, PointerReleased, PointerMoved, KeyDown, KeyUp, TextInput).
  • Gesture recognition and gesture recognizers (TapGestureRecognizer, PinchGestureRecognizer, DragDrop, etc.) to implement intuitive user interactions.
  • Focus management, DragDrop support, and HotKey handling to build responsive, accessible UIs.
  • Real-world use case: implement a control that responds to pointer and keyboard input with drag-and-drop and basic gestures.

Quick Start

Set up a minimal Avalonia view that wires PointerPressed, KeyDown, and DragDrop events with basic gesture recognizers.

Frequently Asked Questions about avalonia-input-interaction

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

FAQPage Schema
How do I handle Avalonia pointer and keyboard input events across UI controls?

Wire Avalonia pointer and keyboard input by attaching PointerPressed, PointerMoved, KeyDown, and TextInput events to UI controls to capture user interactions. This approach centralizes event management and reduces boilerplate.

What is the best way to implement gesture recognition in Avalonia cross-platform apps?

Implement gesture recognition in Avalonia using built-in recognizers like TapGestureRecognizer and PinchGestureRecognizer attached to controls. This enables intuitive tap and pinch interactions without manually calculating pointer movement thresholds.

How do I set up drag and drop interactions in an Avalonia application?

Set up Avalonia drag and drop by wiring DragDrop events and coordinating pointer events across UI controls. This manages data transfer and visual feedback during drag operations while avoiding common focus and event routing pitfalls.

Does this approach to Avalonia input handle focus management and hot keys?

Yes, managing Avalonia input includes handling focus scope and hot keys to build responsive, accessible UIs. It coordinates focus interactions across controls to ensure keyboard navigation and shortcut execution function correctly.

Why are my Avalonia pointer events and gestures conflicting across controls?

Avalonia pointer events and gestures conflict when event wiring and gesture recognition are not coordinated across controls. Centralizing input handling and applying sane defaults prevents common event routing and focus scope pitfalls.