Avalonia UI Layout with Zafiro

0•

Streamlines Avalonia UI development by implementing clean, semantic layouts and shared styles using the Zafiro.Avalonia framework.

This skill provides specialized guidance for architecting modern Avalonia UI applications with a focus on maintainability and minimal XAML redundancy. By leveraging Zafiro.Avalonia's semantic containers like EdgePanel and HeaderedContainer, it helps developers move away from deeply nested Grids and hardcoded styles. It emphasizes the use of XAML behaviors to replace code-behind and converters, standardizes icon implementation via extensions, and ensures consistent theme organization through dynamic resources, making it essential for building professional-grade desktop and cross-platform interfaces.

主要功能

01Behavior-driven UI logic to minimize the need for Converters
020 GitHub stars
03Semantic container implementation using HeaderedContainer and EdgePanel
04Layout flattening techniques to improve UI performance and readability
05Shared style optimization to eliminate redundant XAML properties
06Standardized icon management via IconExtension and IconOptions

使用场景

01Building a consistent design system for large-scale .NET cross-platform apps
02Standardizing UI interaction patterns using XAML Behaviors instead of code-behind
03Refactoring legacy Avalonia views into modern, maintainable semantic layouts