Avalonia & Zafiro Layout Expert

•
1
•

Optimizes Avalonia UI development by enforcing modern layout patterns and semantic containers using the Zafiro library.

This skill equips Claude with specialized architectural guidance for building clean, maintainable Avalonia UI layouts. It leverages Zafiro.Avalonia to move away from redundant XAML and deep grid nesting in favor of semantic containers like EdgePanel and HeaderedContainer. By emphasizing shared styles, DynamicResources, and XAML behaviors over complex code-behind converters, it ensures developers follow production-grade best practices for cross-platform .NET application design and consistent theming.

Key Features

011 GitHub stars
02Implements semantic containers like HeaderedContainer and EdgePanel for cleaner structures.
03Optimizes UI logic by replacing standard Converters with Behaviors and ViewModel properties.
04Streamlines icon integration using the IconExtension and IconOptions framework.
05Reduces XAML redundancy by promoting shared styles and generic components.
06Ensures theme consistency through the systematic use of DynamicResources.

Use Cases

01Refactoring complex, nested Avalonia layouts into flat, performant UI structures.
02Establishing a standardized theming and styling system for cross-platform .NET apps.
03Migrating legacy UI logic from code-behind converters to clean XAML behaviors.