chore: migrate GUI to Avalonia 12#105
Merged
Merged
Conversation
Bumps all Avalonia packages from 11.3.10 to 12.0.3 in sync and adapts GUI code to the v12 breaking changes: - Drop DisableAvaloniaDataAnnotationValidation(): BindingPlugins is no longer publicly configurable; the DataAnnotations plugin is now disabled by default, so the manual removal is obsolete. - Replace Avalonia.Diagnostics with AvaloniaUI.DiagnosticsSupport, the v12 bridge to the external DevTools process. - Rename TextBox.Watermark to PlaceholderText (Watermark is obsolete). Closes #104
There was a problem hiding this comment.
Pull request overview
Migrates the GUI project to Avalonia 12 by updating the Avalonia dependency set, removing now-obsolete validation plugin configuration, and updating XAML to match renamed APIs.
Changes:
- Bumped core Avalonia packages (
Avalonia,Avalonia.Desktop,Avalonia.Themes.Fluent,Avalonia.Fonts.Inter) to12.0.3. - Replaced
Avalonia.DiagnosticswithAvaloniaUI.DiagnosticsSupportand kept it effectively Debug-only in build outputs. - Removed obsolete
DisableAvaloniaDataAnnotationValidation()and updatedTextBoxWatermarkusage toPlaceholderText.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| TriasDev.Templify.Gui/Views/MainWindow.axaml | Updates TextBox placeholder API to Avalonia 12 naming (PlaceholderText). |
| TriasDev.Templify.Gui/TriasDev.Templify.Gui.csproj | Upgrades Avalonia packages to 12.0.3 and swaps diagnostics package to the Avalonia 12-compatible alternative. |
| TriasDev.Templify.Gui/App.axaml.cs | Removes Avalonia 11-era validation plugin manipulation that no longer applies in Avalonia 12. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Avalonia,Avalonia.Desktop,Avalonia.Themes.Fluent,Avalonia.Fonts.Inter) from11.3.10to12.0.3in sync.DisableAvaloniaDataAnnotationValidation()—BindingPluginsis no longer publicly configurable in Avalonia 12, and the DataAnnotations plugin is disabled by default.Avalonia.DiagnosticswithAvaloniaUI.DiagnosticsSupport 2.2.1, the v12 bridge to the external DevTools process (no 12.xAvalonia.Diagnosticsexists on NuGet).TextBox.Watermark→PlaceholderTextinMainWindow.axaml(Watermark is obsolete in v12).Closes #104. Supersedes #100, #101, #102 (which each bumped only a subset of Avalonia packages and broke the build).
Test plan
dotnet build— clean, 0 warnings, 0 errorsdotnet test— 1126/1126 passeddotnet format --verify-no-changes— cleanFollow-up
After merge, group
Avalonia*packages independabot.ymlso future bumps land in a single PR instead of three split PRs.