Avalonia Layout & Zafiro
Optimizes Avalonia UI development by implementing clean, semantic layouts and reusable patterns using the Zafiro library.
This skill provides specialized guidance for building maintainable and modern Avalonia UI applications using Zafiro extensions. It focuses on reducing XAML redundancy through shared styles, leveraging semantic containers like HeaderedContainer and EdgePanel, and replacing complex converters with behaviors or ViewModel properties. By following these established patterns, developers can create flat, efficient UI hierarchies that are easier to style, maintain, and scale compared to traditional deeply nested layouts.
Key Features
01Streamlined icon usage via IconExtension and IconOptions
021 GitHub stars
03Interaction management using Xaml.Interaction.Behaviors
04Semantic container implementation using HeaderedContainer and EdgePanel
05Centralized theme organization and shared style management
06Guidelines for flattening UI hierarchies and minimizing nesting
Use Cases
01Transitioning from legacy WPF-style converters to modern behavior-driven UI logic
02Designing consistent cross-platform desktop interfaces with a standardized design system
03Refactoring cluttered Avalonia UI codebases to improve maintainability and readability