Use this skill to produce reflection-minimized, modern, fast Avalonia apps that stay maintainable across desktop, browser, and mobile targets.
Primary entry for the full reference set:
references/compendium.mdreferences/00-api-map.md.references/01-architecture-and-lifetimes.md.IClassicDesktopStyleApplicationLifetime or ISingleViewApplicationLifetime) and use IActivatableLifetime as an optional feature hook when needed.references/05-platforms-and-bootstrap.md.references/29-storage-provider-and-file-pickers.md.references/31-clipboard-and-data-transfer.md.references/32-launcher-and-external-open.md.references/33-screens-and-display-awareness.md.references/06-msbuild-aot-and-tooling.md.references/41-xaml-compiler-and-build-pipeline.md.references/02-bindings-xaml-aot.md.references/45-value-converters-single-multi-and-binding-wiring.md.references/46-binding-value-notification-and-instanced-binding-semantics.md.references/49-adaptive-markup-and-dynamic-resource-patterns.md.references/50-relative-static-resource-and-name-resolution-markup.md.references/42-runtime-xaml-loader-and-dynamic-loading.md.references/44-runtime-xaml-manipulation-and-service-provider-patterns.md.references/03-reactive-threading.md.references/47-dispatcher-priority-operations-and-timers.md.references/24-commands-hotkeys-and-gestures.md.x:DataType; keep UI-thread mutations explicit.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.references/39-visual-tree-inspection-and-traversal.md.references/40-logical-tree-inspection-and-traversal.md.references/18-input-system-and-routed-events.md.references/19-focus-and-keyboard-navigation.md.references/57-scrollviewer-offset-anchoring-and-snap-points.md.references/58-textbox-editing-clipboard-undo-and-input-options.md.references/34-dragdrop-workflows.md.references/16-property-system-attached-properties-behaviors-and-style-properties.md.references/04-styles-themes-resources.md.references/17-resources-assets-theme-variants-and-xmlns.md.references/43-xaml-in-libraries-and-resource-packaging.md.references/35-path-icons-and-vector-geometry-assets.md.references/28-custom-themes-xaml-and-code-only.md.references/10-templated-controls-and-control-themes.md.references/36-adorners-focus-and-overlay-layers.md.references/13-windowing-and-custom-decorations.md.references/48-toplevel-window-and-runtime-services.md.references/53-menu-controls-contextmenu-and-menuflyout-patterns.md.references/54-native-menu-and-native-menubar-integration.md.references/55-tray-icons-and-system-tray-integration.md.references/56-managed-notifications-and-window-notification-manager.md.references/52-controls-reference-catalog.md for per-control API quick lookup.references/25-popups-flyouts-tooltips-and-overlays.md.references/30-layout-measure-arrange-and-custom-layout-controls.md.references/21-custom-layout-authoring.md.references/20-itemscontrol-virtualization-and-recycling.md.references/57-scrollviewer-offset-anchoring-and-snap-points.md.InvalidateMeasure/InvalidateArrange) and recycling-aware templates.references/12-animations-transitions-and-frame-loops.md.references/15-compositor-and-custom-visuals.md.references/14-custom-drawing-text-shapes-and-skia.md.references/37-shapes-geometry-and-hit-testing.md.references/59-media-colors-brushes-and-formatted-text-practical-usage.md.references/61-rendering-and-interop-boundaries-opengl-vulkan-framebuffer.md for advanced interop only.references/22-validation-pipeline-and-data-errors.md.references/23-accessibility-and-automation.md.references/60-automation-properties-and-attached-behavior-patterns.md.references/26-testing-stack-headless-render-and-ui-tests.md.references/27-diagnostics-profiling-and-devtools.md.references/08-performance-checklist.md.references/07-troubleshooting.md.references/09-end-to-end-examples.md.references/api-index-generated.md for signature-level API lookup and drift checks.references/62-html-css-to-avalonia-modern-ui-conversion-index.md.references/html-to-avalonia/ (index at references/html-to-avalonia/README.md, currently 00-39).references/63-winforms-to-avalonia-modern-ui-conversion-index.md.references/winforms-to-avalonia/ (index at references/winforms-to-avalonia/README.md, currently 00-38).references/64-wpf-to-avalonia-modern-ui-conversion-index.md.references/wpf-to-avalonia/ (index at references/wpf-to-avalonia/README.md, currently 00-45).references/65-winui-to-avalonia-modern-ui-conversion-index.md.references/winui-to-avalonia/ (index at references/winui-to-avalonia/README.md, currently 00-66).Use curated app-building API guidance first:
references/00-api-map.mdFor a generated, broad signature index of app-building surface:
references/api-index-generated.mdRegenerate index after repo upgrades or if API drift is suspected:
python3 scripts/generate_api_index.py \
--repo <path-to-avalonia-repo> \
--git-ref 11.3.12 \
--output references/api-index-generated.md
Search patterns for the large generated index:
rg -n "AppBuilder|ApplicationLifetime|StartWithClassicDesktopLifetime" references/api-index-generated.mdrg -n "CompiledBinding|ReflectionBinding|AvaloniaXamlLoader" references/api-index-generated.mdrg -n "AvaloniaRuntimeXamlLoader|RuntimeXamlLoaderConfiguration|ResourceInclude|StyleInclude" references/api-index-generated.mdrg -n "UseWin32|UseX11|UseAvaloniaNative|UseBrowser|UseAndroid|UseiOS" references/api-index-generated.mdRequiresUnreferencedCode and RequiresDynamicCode APIs as opt-in tradeoffs.x:DataType) and avoid runtime parser fallbacks when equivalent typed APIs exist.AppBuilder.With<T>(...) instead of ad-hoc globals.