Avalonia Zafiro Layout Expert

0•

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

This skill provides specialized guidance for building modern, maintainable Avalonia UI applications. It focuses on using Zafiro.Avalonia to streamline frontend development through semantic containers like HeaderedContainer and EdgePanel, which help flatten complex XAML hierarchies. By prioritizing shared styles, IconExtensions, and Interaction Behaviors over hardcoded values and brittle value converters, this skill ensures your cross-platform C# interfaces are both performant and easy to scale.

Key Features

01Implementation of semantic containers like HeaderedContainer and EdgePanel
02Logic-to-UI mapping using Interaction Behaviors to replace Converters
03Layout flattening techniques to reduce Grid and StackPanel nesting
04Standardized icon management using IconExtension and IconOptions
05Optimization of XAML through shared styles and DynamicResources
060 GitHub stars

Use Cases

01Simplifying UI logic by shifting from converters to behavioral patterns
02Refactoring legacy Avalonia XAML to follow DRY (Don't Repeat Yourself) principles
03Building consistent design systems for complex cross-platform desktop applications