avalonia-data-templates

Community

Efficient Avalonia DataTemplates mastery

Authorlinuxdevel
Version1.0.0
Installs0

System Documentation

What problem does it solve?

DataTemplates, ContentTemplates, and template strategies are essential for clean UI composition in Avalonia. This skill consolidates how to define DataTemplates, ItemTemplates, ContentTemplates, TreeDataTemplates, and template selectors, and how compiled bindings with x:DataType influence performance and type safety.

Core Features & Use Cases

  • DataTemplate, ItemTemplate, and ContentTemplate usage across controls (ListBox, TreeView, DataGrid, ContentControl) with runtime-type matching.
  • App-level templates and template scope resolution for consistent UI across the app.
  • TreeDataTemplate for hierarchical data, and DataTemplate selectors (IDataTemplate) and FuncDataTemplate for flexible rendering.
  • Template reuse through resources and dynamic template assignment via ItemTemplate or auto-selection.

Quick Start

Register a DataTemplate for a ViewModel in Application.DataTemplates and reference it from a ContentControl to render the corresponding view.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: avalonia-data-templates
Download link: https://github.com/linuxdevel/Avalonia-skills/archive/main.zip#avalonia-data-templates

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.