Files
LanMountainDesktop/.trae/specs/avalonia-12-migration/checklist.md
lincube 9fb41378eb Migrate codebase to Avalonia 12 APIs
Apply Avalonia 12 migration changes: replace SystemDecorations with WindowDecorations and remove ExtendClientAreaChromeHints/ExtendClientAreaTitleBarHeightHint usages; update BindingPlugins removal logic (no-op); switch clipboard usage to ClipboardExtensions.SetTextAsync; update Bitmap.CopyPixels calls to the new signature. Replace TextBox.Watermark with PlaceholderText, convert NumberBox styles to FANumberBox and adjust templates, change Checked/Unchecked handlers to IsCheckedChanged, and adapt FluentIcons usages (SymbolIconSource -> FASymbol/FAFont/FluentIcon equivalents). Fix MainWindow partial classes to inherit Window and correct missing variables/fields/usings. Add migration docs/specs/tasks under .trae and include a small TestFluentIcons project for icon testing.
2026-04-29 08:50:28 +08:00

1.1 KiB
Raw Blame History

Checklist

  • SettingsWindow.ApplyChromeMode() 不再使用 ExtendClientAreaChromeHintsSystemDecorations
  • ComponentEditorWindow.ApplyChromeMode() 不再使用 ExtendClientAreaChromeHintsSystemDecorations
  • 所有 .axaml 文件中的 SystemDecorations 已替换为 WindowDecorations
  • MainWindow.ComponentSystem.cscenterLeftpositions 变量已正确定义
  • MainWindow.DesktopPaging.cschild_isThreeFingerOrRightDragSwipeActive 变量已正确定义
  • App.axaml.csBindingPlugins.DataValidators 代码已移除
  • DesktopComponentFailureView.cs 使用 ClipboardExtensions.SetTextAsync
  • MonetColorService.cs 使用正确的 Bitmap.CopyPixels 签名
  • SettingsWindow.axaml.cs 使用 FluentIcons.Avalonia.FluentIcon 替代 SymbolIconSource
  • 所有 TextBox.Watermark 已替换为 PlaceholderText
  • dotnet build LanMountainDesktop.slnx -c Debug 0 errors, 0 warnings过时 API 警告)
  • dotnet test LanMountainDesktop.slnx -c Debug 全部通过