Avalonia Zafiro Layout Optimizer

0•

Streamlines Avalonia UI development using Zafiro conventions to create clean, maintainable, and semantic XAML layouts.

This skill provides specialized guidance for building high-quality Avalonia UI applications leveraging the Zafiro.Avalonia library. It helps developers move away from redundant XAML and deep nesting by promoting the use of semantic containers like EdgePanel and HeaderedContainer, alongside shared styles and IconExtensions. By enforcing best practices such as using Behaviors over complex Converters and avoiding hardcoded literals, this skill ensures your cross-platform UI code remains flat, readable, and easy to maintain according to modern implementation patterns.

Key Features

01Standardization of shared styles and theme organization in axaml
020 GitHub stars
03Implementation of semantic containers like EdgePanel and HeaderedContainer
04Anti-pattern detection for deep nesting and hardcoded literals
05Streamlined icon management using IconExtension and IconOptions
06Replacement of complex UI logic with Xaml.Interaction.Behaviors

Use Cases

01Optimizing XAML maintainability by migrating logic to ViewModels and Behaviors
02Refactoring legacy Avalonia layouts into flattened, semantic UI structures
03Standardizing design systems across complex cross-platform desktop applications