Avalonia UI Layout with Zafiro
Optimizes Avalonia UI development by implementing Zafiro-based layouts, semantic containers, and streamlined XAML patterns.
This skill provides specialized guidance for building modern, maintainable desktop applications using Avalonia UI and the Zafiro.Avalonia library. It enforces industry best practices such as utilizing semantic containers like EdgePanel and HeaderedContainer, leveraging shared styles to eliminate XAML redundancy, and implementing complex interactions through XAML Behaviors rather than brittle code-behind logic. By following these patterns, developers can create cleaner, flatter UI hierarchies that are easier to theme, test, and maintain across cross-platform environments.
Características Principales
01UI logic implementation via Xaml.Interaction.Behaviors to avoid converters
02Semantic container implementation using HeaderedContainer, EdgePanel, and Card
03Streamlined icon integration using IconExtension and IconOptions
04Shared style optimization for minimal XAML redundancy and easy theming
05Anti-pattern detection for deep nesting and hardcoded literal values
061 GitHub stars
Casos de Uso
01Refactoring legacy Avalonia views into maintainable, flat UI hierarchies
02Standardizing UI components and styles across large enterprise C# projects
03Building modern, themed desktop applications with a clean XAML structure