Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sickn33 avatar

Avalonia Layout Zafiro

  • 633 installs
  • 44k repo stars
  • Updated July 27, 2026
  • sickn33/antigravity-awesome-skills

avalonia-layout-zafiro is a Claude skill that teaches developers to build clean Avalonia and Zafiro views using Xaml.Interaction.Behaviors instead of converter-heavy XAML while keeping UI logic out of ViewModels.

About

avalonia-layout-zafiro is a UI architecture skill from sickn33/antigravity-awesome-skills for Avalonia and Zafiro desktop applications. The guidance promotes Interaction.Behaviors for focus management, animations, and specialized event handling so views stay readable without excessive value converters or code-behind. Developers reach for avalonia-layout-zafiro when XAML grows converter-heavy, UI logic leaks into ViewModels, or reusable interaction patterns like UntouchedClassBehavior are needed on controls such as TextBox bindings. The skill emphasizes encapsulation, cleaner XAML, and independently testable behavior classes for cross-platform .NET desktop UI.

  • Prefer Interaction.Behaviors for focus, animations, and UI-only event logic
  • Minimize converters—favor ViewModel-formatted properties and MultiBinding
  • Documented UntouchedClassBehavior-style pattern for encapsulated UI logic
  • Guidance to simplify components before adding complex converters or behaviors
  • Zafiro-oriented Avalonia layout conventions for maintainable XAML

Avalonia Layout Zafiro by the numbers

  • 633 all-time installs (skills.sh)
  • +3 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #537 of 2,277 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill avalonia-layout-zafiro

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs633
repo stars44k
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorysickn33/antigravity-awesome-skills

How do you keep Avalonia UI logic out of ViewModels?

Build clean Avalonia/Zafiro views with behaviors instead of converter-heavy XAML and keep UI logic out of ViewModels.

Who is it for?

.NET desktop developers building Avalonia or Zafiro apps who want maintainable XAML without converter sprawl.

Skip if: Web React or WPF-only projects that do not use Avalonia, Zafiro, or Xaml.Interaction.Behaviors.

When should I use this skill?

The user builds Avalonia or Zafiro views, mentions Interaction.Behaviors, or wants to move UI logic out of ViewModels and converters.

What you get

Behavior-based Avalonia XAML views with reusable interaction classes and reduced converter usage.

  • Behavior-based XAML views
  • Reusable interaction behavior classes

Files

SKILL.mdMarkdownGitHub ↗

Avalonia Layout with Zafiro.Avalonia

Master modern, clean, and maintainable Avalonia UI layouts.
Focus on semantic containers, shared styles, and minimal XAML.

🎯 Selective Reading Rule

Read ONLY files relevant to the layout challenge!

---

📑 Content Map

FileDescriptionWhen to Read
themes.mdTheme organization and shared stylesSetting up or refining app themes
containers.mdSemantic containers (HeaderedContainer, EdgePanel, Card)Structuring views and layouts
icons.mdIcon usage with IconExtension and IconOptionsAdding and customizing icons
behaviors.mdXaml.Interaction.Behaviors and avoiding ConvertersImplementing complex interactions
components.mdGeneric components and avoiding nestingCreating reusable UI elements

---

🔗 Related Project (Exemplary Implementation)

For a real-world example, refer to the Angor project: /mnt/fast/Repos/angor/src/Angor/Avalonia/Angor.Avalonia.sln

---

✅ Checklist for Clean Layouts

  • [ ] Used semantic containers? (e.g., HeaderedContainer instead of Border with manual header)
  • [ ] Avoided redundant properties? Use shared styles in axaml files.
  • [ ] Minimized nesting? Flatten layouts using EdgePanel or generic components.
  • [ ] Icons via extension? Use {Icon fa-name} and IconOptions for styling.
  • [ ] Behaviors over code-behind? Use Interaction.Behaviors for UI-logic.
  • [ ] Avoided Converters? Prefer ViewModel properties or Behaviors unless necessary.

---

❌ Anti-Patterns

DON'T:

  • Use hardcoded colors or sizes (literals) in views.
  • Create deep nesting of Grid and StackPanel.
  • Repeat visual properties across multiple elements (use Styles).
  • Use IValueConverter for simple logic that belongs in the ViewModel.

DO:

  • Use DynamicResource for colors and brushes.
  • Extract repeated layouts into generic components.
  • Leverage Zafiro.Avalonia specific panels like EdgePanel for common UI patterns.

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Related skills

How it compares

Use avalonia-layout-zafiro for Avalonia behavior patterns rather than generic MVVM theory without XAML specifics.

FAQ

Why use behaviors in avalonia-layout-zafiro?

avalonia-layout-zafiro recommends Xaml.Interaction.Behaviors to encapsulate UI logic such as focus and animations in reusable classes, keeping Avalonia XAML clean and ViewModels free of view-specific code.

Which frameworks does avalonia-layout-zafiro target?

avalonia-layout-zafiro targets Avalonia and Zafiro cross-platform .NET desktop UI with XAML views and Interaction.Behaviors instead of excessive value converters.

Is Avalonia Layout Zafiro safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.