Avalonia Versions 标志

Avalonia Versions

社区
linuxdevel
avalonia-versions

Use FIRST when the Avalonia version matters — detecting which Avalonia version a project uses, checking whether a feature/API exists in 11.3, 12.0 or 12.1, migrating 11.x → 12.x, or upgrading 12.0 → 12.1. Contains the version/feature matrix, renamed/removed API tables, and the version-label conventions used by all other Avalonia skills.

概览

发布者linuxdevel
代码仓库Avalonia-skills
技能名称avalonia-versions
星标数
50
复刻数
4
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 linuxdevel 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Avalonia Versions AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/linuxdevel/Avalonia-skills/tree/main/skills/avalonia/avalonia-versions
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/linuxdevel/Avalonia-skills.git /tmp/Avalonia-skills
mkdir -p .claude/skills
cp -r /tmp/Avalonia-skills/skills/avalonia/avalonia-versions .claude/skills/avalonia-versions
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Avalonia Versions,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Avalonia Versions。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Avalonia Versions 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Avalonia Versions & Feature Matrix

Supported Versions

LineLatest patchReleased.NETStatus
12.112.1.412.1.0: Jul 2026net8.0+ (net10.0 recommended; required for Android/iOS)Current stable — default for new projects
12.012.0.512.0.0: Apr 2026same as 12.1Supported — drop-in upgrade to 12.1
11.311.3.22—netstandard2.0 / net6.0+ / .NET FrameworkLegacy — maintenance only; plan migration

Versions older than 11.3 are out of scope; treat them like 11.3 but expect missing APIs.

Step 1 — Detect the Project's Version

Before writing code, find the version. Search in this order:

  1. Directory.Packages.props → <PackageVersion Include="Avalonia" Version="..."/>
  2. *.csproj → <PackageReference Include="Avalonia" Version="..."/>
  3. Directory.Build.props → an AvaloniaVersion property or similar
  4. dotnet list package | grep -i avalonia
sh
grep -rhoE 'Include="Avalonia(\.Desktop)?" Version="[^"]+"' --include='*.csproj' --include='*.props' .
  • No project yet → use 12.1.x (latest patch), net10.0.
  • Mixed versions across Avalonia.* packages → bug. All core Avalonia.* packages must share one version (third-party themes/controls have their own versioning).
  • ReactiveUI.Avalonia, Avalonia.Controls.WebView, Avalonia.Controls.DataGrid, Avalonia.Controls.TreeDataGrid version on their own schedule; check NuGet for the release that matches the core version.

Version Label Convention (used across all skills)

LabelMeaning
(12.0+)Exists from 12.0.0 onward. Not in 11.x
(12.1+)Exists from 12.1.0 onward. Not in 12.0 or 11.x
(11.x)11.x API — removed/obsolete in 12. Only use in 11.x projects
no labelWorks in 11.3, 12.0 and 12.1

When a skill shows a 12.x API and an (11.x) alternative side by side, pick the one that matches the project's version. Never mix — e.g. don't use DataObject in a 12.x project.

Feature Matrix

✅ available · ❌ not available · ⚠️ obsolete (works, warns) · 🧪 experimental

Platform & runtime

Feature11.312.012.1
.NET Framework / netstandard2.0 targets✅❌❌
net8.0 minimum, net10.0 recommended—✅✅
Android/iOS on net10.0 (required)❌✅✅
Mac Catalyst (via Avalonia.iOS)❌✅✅
iOS scene delegate❌✅✅
Rebuilt Android backend, multiple activities, IActivityApplicationLifetime❌✅✅
Android system-theme change detection❌❌✅
Linux AT-SPI2 accessibility❌✅✅
Native Wayland backend (Avalonia.Wayland + .UseWayland())❌❌🧪 (not picked by UsePlatformDetect())
X11 drag-and-drop between processes (XDND)❌❌✅
X11/Windows render at monitor refresh rate (>60 FPS)❌❌✅
Embed Avalonia in WinUI 3 (Avalonia.WinUI)❌❌✅
Windows 11 window corner rounding control❌❌✅
Avalonia.Direct2D1 backend✅❌ (use Skia)❌
Avalonia.Browser.Blazor, Avalonia.Tizen✅❌❌
SBOM shipped with packages❌❌✅

Controls

Control / feature11.312.012.1
GroupBox❌✅✅
PipsPager❌✅✅
Page-based navigation (Page, ContentPage, NavigationPage, TabbedPage, DrawerPage, CarouselPage, CommandBar)❌✅✅
TableView (read-only tabular, virtualized)❌❌✅
NativeWebView / NativeWebDialog open source (Avalonia.Controls.WebView) — Windows, macOS, Linux, iOS; Android experimental; not browser/WASM❌ (commercial)✅✅
DataGrid (Avalonia.Controls.DataGrid)✅✅✅ maintenance mode — prefer TableView/TreeDataGrid for new read-only grids
TreeDataGrid (Avalonia.Controls.TreeDataGrid) — needs Avalonia Accelerate licence since 11.2.0; 12.x packages need Avalonia ≥ 12.0.1✅ (11.x pkg)✅✅
TextBox.PlaceholderText / UseFloatingPlaceholder❌✅✅
TextBox.Watermark / UseFloatingWatermark✅⚠️⚠️
PlaceholderForeground (TextBox, AutoCompleteBox, CalendarDatePicker, NumericUpDown)❌✅✅
TabItem.IconTemplate❌✅✅
FlyoutBase.IsOpen styled property❌✅✅
Carousel gestures + WrapSelection❌✅✅
DrawingImage.Viewbox❌✅✅
NativeDock.Menu (macOS dock menu)❌✅✅
WindowDrawnDecorations (themeable client-side decorations)❌✅✅
Window.WindowDecorations❌✅✅
Window.SystemDecorations / ExtendClientAreaChromeHints✅⚠️ / ❌⚠️ / ❌

Bindings, text, input, threading

Feature11.312.012.1
Compiled bindings on by default (AvaloniaUseCompiledBindingsByDefault defaults true)❌ (opt-in)✅✅
CompiledBinding.Create(...) from LINQ expressions❌✅✅
Binding plugins (BindingPlugins) configurable✅❌ removed❌
Data-annotations validation on by default✅❌ (opt-in)❌
TextOptions (TextRenderingMode etc.)❌✅✅
TextElement.LetterSpacing (inherited)❌ (TextBlock.LetterSpacing)✅✅
UseHarfBuzz() required with explicit UseSkia()❌✅✅
Access keys match printed symbol (accents, digits)❌✅✅
Focus Traversal API (IFocusManager.FindNextElement/TryMoveFocus), cancellable focus, FocusChangedEventArgs❌✅✅
Gesture events directly on InputElement (no Gestures. prefix)❌✅✅
Touch/pen select on release (not press)❌✅✅
Dispatcher.CurrentDispatcher, Dispatcher.FromThread, AvaloniaObject.Dispatcher, Dispatcher.Yield❌✅✅
Async clipboard/drag-drop (IAsyncDataTransfer, DataTransfer)❌✅✅
PlatformFeedback (haptics/sound, Android/iOS)❌❌✅
Hidden controls stop style animations (PlaybackBehavior="Always" to override)❌✅✅

11.x → 12.0 Migration: Renamed / Replaced APIs

11.x12.x
IDataObject / DataObjectIAsyncDataTransfer / DataTransfer + DataTransferItem
DataFormats.Text etc.DataFormat.Text etc.
DragDrop.DoDragDrop(...)await DragDrop.DoDragDropAsync(...)
DragEventArgs.DataDragEventArgs.DataTransfer
IClipboard.GetTextAsync / SetTextAsyncTryGetTextAsync / SetTextAsync (extension methods, ClipboardExtensions)
IClipboard.SetDataObjectAsync / GetDataAsync / GetFormatsAsyncSetDataAsync / TryGetDataAsync / GetDataFormatsAsync
IBinding / InstancedBindingBindingBase / BindingExpressionBase
new Binding(...) in C#ReflectionBinding or CompiledBinding
GotFocusEventArgsFocusChangedEventArgs
KeyboardNavigationHandler.GetNextIFocusManager.FindNextElement(...) / TryMoveFocus(...)
Gestures.Pinch="..." etc. in XAMLPinch="..."
TopLevel.PlatformSettingsvisual.GetPlatformSettings()
VisualExtensions.GetVisualRootGetPresentationSource() → .RootVisual
(TopLevel)visual.GetVisualRoot()TopLevel.GetTopLevel(visual)
SystemDecorations / ExtendClientAreaChromeHintsWindowDecorations
Chrome.TitleBar, CaptionButtons, ChromeOverlayLayerWindowDrawnDecorations
VisualLayerManager.AdornerLayer / OverlayLayerAdornerLayer.GetAdornerLayer(v) / OverlayLayer.GetOverlayLayer(v)
TextBox.Watermark / UseFloatingWatermarkPlaceholderText / UseFloatingPlaceholder
RenderOptions.TextRenderingModeTextOptions.TextRenderingMode
TextBlock.LetterSpacingTextElement.LetterSpacing
AccessText.AccessKey (char)string?
NativeMenuItemToggleTypeMenuItemToggleType
AvaloniaMainActivity<TApp>AvaloniaMainActivity + [Application] class App : AvaloniaAndroidApplication<TApp>
ISingleViewApplicationLifetime (Android)IActivityApplicationLifetime with MainViewFactory (iOS/Browser still use ISingleViewApplicationLifetime)
Avalonia.Diagnostics + AttachDevTools()AvaloniaUI.DiagnosticsSupport + AttachDeveloperTools()
Avalonia.ReactiveUI package (deprecated on NuGet, last 11.3.8)ReactiveUI.Avalonia package (maintained by ReactiveUI team)
Avalonia.Direct2D1 / UseDirect2D1()UseSkia()
xUnit v2 / NUnit 3 (with Avalonia.Headless.*)xUnit v3 / NUnit 4
FuncMultiValueConverter lambda IEnumerable<TIn>IReadOnlyList<TIn>
ResourcesChangedEventArgs.Empty / new(...)ResourcesChangedEventArgs.Create(...) (now a struct)

Removed in 12 (were obsolete in 11)

OpenFileDialog/SaveFileDialog/OpenFolderDialog/SystemDialog → IStorageProvider · ToggleButton.Checked/Unchecked/Indeterminate events → IsCheckedChanged · Popup.PlacementMode/ContextMenu.PlacementMode → Placement · CubicBezierEasing → SplineEasing · CustomAnimatorBase → InterpolatingAnimator<T> · ItemContainerGenerator.ContainerFromIndex → ItemsControl.ContainerFromIndex · BindingPriority.TemplatedParent → Template · DrawingContext.PushPreTransform/PushPostTransform → PushTransform · RadialGradientBrush.Radius → RadiusX/RadiusY · Screen.PixelDensity → Scaling · Screen.Primary → IsPrimary · IStyleable → StyledElement · IActivatableApplicationLifetime → TryGetFeature<IActivatableLifetime>() · IInsetsManager.DisplayEdgeToEdge → DisplayEdgeToEdgePreference · TopLevel.PointerOverElement (no replacement) · TextInputMethodClient.ShowInputPanel → InputPaneActivationRequested event · Type 1 fonts · BinaryFormatter clipboard on Windows.

Behavior changes in 12 (no compile error — silent!)

  • Compiled bindings on by default: {Binding} without x:DataType now fails to compile. Add x:DataType, or use {ReflectionBinding}, or set <AvaloniaUseCompiledBindingsByDefault>false</...>.
  • Data-annotation validation off by default. Properties registered with enableDataValidation: true report errors automatically.
  • Touch/pen: selection/focus on pointer release. ListBoxItem/TreeViewItem handle selection themselves (no bubbling to ItemsControl).
  • Window.WindowState is a direct property — cannot be set from a style.
  • Style-triggered animations pause on invisible controls — set Animation.PlaybackBehavior="Always" to keep ticking.
  • Dispatcher.InvokeAsync captures ExecutionContext (AsyncLocal, culture flow).
  • DispatcherTimer / AvaloniaSynchronizationContext use the current dispatcher, not always the UI thread — create timers on the UI thread.
  • Explicit UseSkia() without UseHarfBuzz() → InvalidOperationException: No text shaping system configured. (UsePlatformDetect() handles this.)
  • Windows ExtendClientAreaToDecorationsHint fixed — remove old margin workarounds.

12.0 → 12.1 Upgrade

Drop-in: bump all Avalonia.* to 12.1.x. No API breaks. Notes:

  • Multiple dirty-rect clipping now off by default; stencil buffers on by default (more HW-accelerated clipping).
  • Apps now render at monitor refresh rate on X11 (and Windows with non-default render modes) — animations that assumed 60 FPS ticks still work (time-based), but CPU/GPU use may rise.
  • Wayland is opt-in and experimental: AppBuilder.Configure<App>().UseWayland() with Avalonia.Wayland; keep UsePlatformDetect() as default.

Common Mistakes

  • Writing 12.x API (DataTransfer, PlaceholderText, GroupBox) into an 11.x project, or 11.x API into 12.x — check version first.
  • Upgrading Avalonia but not Avalonia.Desktop/Avalonia.Themes.Fluent/Avalonia.Headless.* — all must match.
  • Keeping Avalonia.ReactiveUI / Avalonia.Diagnostics after moving to 12 — they don't exist for 12.
  • Forgetting net10.0 on Android/iOS heads in 12.x.
  • Assuming UsePlatformDetect() picks Wayland in 12.1 — it doesn't.

Sources

常见问题

Avalonia Versions AI 技能有什么作用?

Use FIRST when the Avalonia version matters — detecting which Avalonia version a project uses, checking whether a feature/API exists in 11.3, 12.0 or 12.1, migrating 11.x → 12.x, or upgrading 12.0 → 12.1. Contains the version/feature matrix, renamed/removed API tables, and the version-label conventions used by all other Avalonia skills.

为什么在 TypingMind 中使用 Avalonia Versions?

因为您只需安装一次,就能搭配任何模型使用。Avalonia Versions 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Avalonia Versions?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/linuxdevel/Avalonia-skills/tree/main/skills/avalonia/avalonia-versions。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Avalonia Versions?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Avalonia Versions 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Avalonia Versions 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Avalonia Versions AI 技能免费吗?

是的。linuxdevel 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇