Agent skill
avalonia-layout-and-virtualization
Design or optimize Avalonia panels, measure and arrange behavior, custom layout controls, item virtualization, recycling, and large-data presentation. Use for `MeasureOverride` or `ArrangeOverride` work, invalidation bugs, virtualized item surfaces, or custom panel authoring.
Install this agent skill to your Project
npx add-skill https://github.com/wieslawsoltes/development-plugin-for-avalonia/tree/main/skills/avalonia-layout-and-virtualization
SKILL.md
Avalonia Layout and Virtualization
Start with:
../../references/30-layout-measure-arrange-and-custom-layout-controls.md../../references/21-custom-layout-authoring.md../../references/20-itemscontrol-virtualization-and-recycling.md
Load these when scrolling or templates are involved:
../../references/57-scrollviewer-offset-anchoring-and-snap-points.md../../references/38-data-templates-and-idatatemplate-selector-patterns.md
Workflow
- Define layout contract first: desired size, final arrangement, invalidation rules.
- Use built-in panels and recycling paths before creating a custom panel.
- Verify how virtualization, scrolling, and templates interact on large data sets.
- Measure before and after changes when performance is the reason for the work.
Rules
- Use
InvalidateMeasureandInvalidateArrangedeliberately. - Avoid per-item heavy logic inside measuring and arranging hot paths.
- Keep virtualization-friendly templates light and deterministic.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
development-plugin-for-avalonia
Repo-local umbrella skill for building, reviewing, designing, porting, and migrating Avalonia applications with modern XAML/C# patterns on Avalonia 11.3.12. Use when working inside this repository and the request is broad Avalonia work; route quickly to the focused plugin skills for startup, bindings, styling, controls, layout, rendering, testing, design systems, or HTML/WinForms/WPF/WinUI/Avalonia 12 migration work.
avalonia-styling-and-resources
Build or troubleshoot Avalonia styles, themes, resources, property-system usage, theme variants, resource packaging, and custom theme architecture. Use for selector fixes, attached properties, resource lookup problems, theme switching, library resource packaging, or code-only theme work.
avalonia-design-systems
Design polished Avalonia design systems with reusable tokens, typography, spacing, shell composition, dense workflow UX, motion, and governance rules. Use for professional UI direction, design-token architecture, responsive layout systems, information architecture, or high-quality desktop workflow design.
avalonia-testing-diagnostics-and-performance
Validate Avalonia applications with headless tests, render or UI tests, diagnostics tooling, troubleshooting workflows, and performance reviews. Use for test strategy, DevTools or profiler usage, performance regressions, rendering investigations, or production hardening passes.
avalonia-accessibility-and-validation
Design or review Avalonia validation, data-error presentation, accessibility semantics, automation properties, focus order, and testable UI metadata. Use for validation pipelines, screen-reader support, keyboard-only UX, automation-tree issues, or accessibility hardening.
winui-to-avalonia
Port WinUI or Windows App SDK applications to Avalonia, including shell design, dependency-property patterns, theme resources, composition, commands, dialogs, and platform integration. Use for `NavigationView`, `ContentDialog`, `ThemeResource`, `VisualStateManager`, `ItemsRepeater`, `AppWindow`, or broader WinUI-to-Avalonia migration work.
Didn't find tool you were looking for?