Avalonia UI Layout & Zafiro Styling

•
1
•

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

This skill provides specialized guidance for building maintainable and modern user interfaces with Avalonia UI and the Zafiro.Avalonia library. It assists developers in implementing semantic containers like EdgePanels and HeaderedContainers, managing icons via extensions, and reducing XAML redundancy through shared styles and behaviors. By discouraging anti-patterns like deep grid nesting and excessive value converters, it ensures a flatter, more efficient UI architecture that is easier to maintain and scale for cross-platform desktop applications.

Key Features

01Streamlined icon management via IconExtension and IconOptions
02Reduction of XAML redundancy through centralized theme and style organization
03Logic-driven UI interactions using Xaml.Interaction.Behaviors to replace code-behind
04Guidance on flattening complex layouts to improve performance and readability
05Implementation of semantic containers like EdgePanel, HeaderedContainer, and Card
061 GitHub stars

Use Cases

01Refactoring legacy XAML codebases into modern, style-driven Avalonia patterns
02Building high-performance cross-platform desktop applications with the Zafiro framework
03Standardizing UI components and design systems across multi-project Avalonia solutions