Agent skill
avalonia-views-and-templating
Build or refactor Avalonia view composition, view-location strategies, templates, templated content, and tree-inspection patterns. Use for view locator work, `DataTemplate` or `IDataTemplate` selection, templated parent issues, logical or visual tree traversal, or content-template architecture.
Stars
57
Forks
6
Install this agent skill to your Project
npx add-skill https://github.com/wieslawsoltes/development-plugin-for-avalonia/tree/main/skills/avalonia-views-and-templating
SKILL.md
Avalonia Views and Templating
Start with:
../../references/11-user-views-locator-and-tree-patterns.md../../references/38-data-templates-and-idatatemplate-selector-patterns.md../../references/51-template-content-and-func-template-patterns.md
Load these when lookup or debugging matters:
../../references/39-visual-tree-inspection-and-traversal.md../../references/40-logical-tree-inspection-and-traversal.md
Workflow
- Choose whether composition belongs in views, templates, or view-location infrastructure.
- Keep template selection deterministic and typed when possible.
- Use logical or visual tree traversal deliberately and only where ownership is clear.
- Separate reusable templates from app-specific shell composition.
Rules
- Prefer simple
DataTemplateandx:DataTypeflows before custom selector infrastructure. - Keep tree walking out of hot paths when a direct reference or binding can do the job.
- Make template-part and templated-parent assumptions explicit.
Didn't find tool you were looking for?