Overview of Xaml.Behaviors.Interactions.Events
masterThe Xaml.Behaviors.Interactions.Events package provides strongly-typed Behaviors and Triggers for Avalonia events. It allows you to handle input events (Pointer, Keyboard, Focus, Gestures, and Drag & Drop) directly in XAML.
Key capabilities include:
- Strongly Typed Wrappers: Uses dedicated classes (e.g.,
PointerPressedEventTrigger) instead of string-based event names. - Routing Strategies: Supports the
RoutingStrategiesproperty to control whether an event is handled during theTunnel,Bubble, orDirectphase. - Base Classes: Provides abstract
*EventBehaviorclasses to simplify creating custom reusable logic without manual event subscription boilerplate.