Avalonia Layout with Zafiro
Optimizes Avalonia UI development by implementing Zafiro-based semantic containers and clean XAML architectural patterns.
This skill provides comprehensive guidelines and implementation patterns for building modern, maintainable user interfaces in Avalonia UI using the Zafiro.Avalonia library. It helps developers move away from bloated, deeply nested XAML by leveraging semantic containers like EdgePanel and HeaderedContainer, utilizing shared styles for visual consistency, and replacing brittle converters with elegant interaction behaviors. It is ideal for developers building cross-platform desktop applications who prioritize clean code and a scalable design system.
主な機能
01Strategies for minimizing XAML nesting and eliminating hardcoded literals
02Streamlined icon management using IconExtension and IconOptions
03Best practices for theme organization and shared style sheets (axaml)
040 GitHub stars
05Implementation of semantic containers like HeaderedContainer, EdgePanel, and Card
06Advanced UI logic implementation using Interaction Behaviors to replace converters
ユースケース
01Establishing a consistent design system and theme for a new cross-platform application
02Implementing complex UI interactions without polluting ViewModels with presentation logic
03Refactoring legacy Avalonia views into clean, modular Zafiro-based layouts