Avalonia Layout with Zafiro
Optimizes Avalonia UI development by implementing clean, semantic layouts using the Zafiro.Avalonia framework.
This skill provides expert guidance for building modern and maintainable user interfaces with Avalonia UI and the Zafiro.Avalonia library. It streamlines XAML development by emphasizing semantic containers like HeaderedContainer and EdgePanel, promoting shared styles to reduce redundancy, and utilizing behaviors to handle complex interactions without code-behind. By following these patterns, developers can achieve flatter UI hierarchies, consistent icon management, and more scalable desktop application designs while avoiding common anti-patterns like hardcoded literals and deep nesting.
Características Principales
01Shared style optimization to eliminate redundant XAML properties
02Advanced icon management via IconExtension and IconOptions
03Semantic container implementation using HeaderedContainer and EdgePanel
04Behavior-driven UI logic to replace complex IValueConverters
05Layout flattening techniques to minimize nested Grids and StackPanels
060 GitHub stars
Casos de Uso
01Standardizing visual themes and styling across multi-view desktop applications
02Refactoring complex Avalonia XAML into clean, reusable semantic components
03Implementing declarative UI interactions using Behaviors to keep ViewModels clean