Agent skill
winforms-to-avalonia
Port WinForms applications and patterns to Avalonia, including layout, control migration, owner-draw replacement, application lifetime, resources, and workflow shells. Use for `Control` or `Form` migration, `DataGridView` and `ListView` replacement, `OnPaint` ports, dialog or tray flows, or WinForms-to-Avalonia modernization work.
Install this agent skill to your Project
npx add-skill https://github.com/wieslawsoltes/development-plugin-for-avalonia/tree/main/skills/winforms-to-avalonia
SKILL.md
WinForms to Avalonia
Start with:
../../references/63-winforms-to-avalonia-modern-ui-conversion-index.md../../references/winforms-to-avalonia/README.md
Prioritize the detailed chapters that match the source app:
- lifecycle, docking, layout, and navigation shells
- data-binding, validation, list or tree controls
- dialogs, tray, menus, keyboard processing, and platform services
- owner-draw, custom controls, rendering, and advanced workflows
Workflow
- Identify the WinForms source idiom precisely before proposing an Avalonia replacement.
- Replace layout and painting assumptions first; they drive most downstream changes.
- Map stateful UI workflows to Avalonia controls and templating instead of recreating WinForms plumbing.
- End with a modernization plan, not only a one-to-one API substitution list.
Rules
- Do not emulate WinForms layout or paint cycles inside Avalonia.
- Prefer Avalonia templating and composition over direct control painting patterns.
- Keep lifetime, threading, and platform-service changes explicit in the migration plan.
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?