mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
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.
1.1 KiB
1.1 KiB
Checklist
SettingsWindow.ApplyChromeMode()不再使用ExtendClientAreaChromeHints和SystemDecorationsComponentEditorWindow.ApplyChromeMode()不再使用ExtendClientAreaChromeHints和SystemDecorations- 所有
.axaml文件中的SystemDecorations已替换为WindowDecorations MainWindow.ComponentSystem.cs中centerLeft和positions变量已正确定义MainWindow.DesktopPaging.cs中child和_isThreeFingerOrRightDragSwipeActive变量已正确定义App.axaml.cs中BindingPlugins.DataValidators代码已移除DesktopComponentFailureView.cs使用ClipboardExtensions.SetTextAsyncMonetColorService.cs使用正确的Bitmap.CopyPixels签名SettingsWindow.axaml.cs使用FluentIcons.Avalonia.FluentIcon替代SymbolIconSource- 所有
TextBox.Watermark已替换为PlaceholderText dotnet build LanMountainDesktop.slnx -c Debug0 errors, 0 warnings(过时 API 警告)dotnet test LanMountainDesktop.slnx -c Debug全部通过