avalonia-custom-controls
Installation
SKILL.md
Avalonia Custom Controls
Overview
Three control types: UserControl (XAML composition, app-specific), TemplatedControl (lookless, restyled per theme), Control (custom drawing with Render override). Choose by reusability needs.
Choosing a Control Type
| Type | Inherit from | Use when |
|---|---|---|
| UserControl | UserControl |
App-specific view/page, composed of existing controls |
| TemplatedControl | TemplatedControl |
Reusable, restyled control for libraries/themes |
| Basic control | Control |
Custom drawing (charts, gauges, games) |
| Panel | Panel |
Custom layout algorithm |