Avalonia UI Layout & Zafiro

0•

Optimizes Avalonia UI development by implementing Zafiro.Avalonia best practices for clean, maintainable, and semantic layouts.

This skill provides Claude with specialized knowledge for building modern user interfaces using the Avalonia framework and the Zafiro extension library. It focuses on reducing XAML redundancy through shared styles, leveraging semantic containers like HeaderedContainer and EdgePanel, and replacing complex converters with behaviors and ViewModel properties. It is an essential guide for .NET developers looking to streamline their frontend architecture, enforce consistent design patterns, and ensure cross-platform UI maintainability.

Key Features

01Implements semantic containers like HeaderedContainer and EdgePanel for cleaner structures
02Promotes Interaction Behaviors over code-behind for complex UI logic
030 GitHub stars
04Enforces shared styling and DynamicResources to minimize XAML bloat
05Provides architectural patterns for flattening deeply nested UI hierarchies
06Integrates IconExtension and IconOptions for streamlined vector icon usage

Use Cases

01Standardizing the visual appearance of a complex cross-platform app using centralized themes
02Refactoring deeply nested Grid and StackPanel layouts into a flatter, more maintainable structure
03Migrating logic-heavy XAML views to a cleaner ViewModel-first approach with Behaviors