This repository was archived by the owner on Apr 10, 2026. It is now read-only.
Remove FluentAvaloniaUI package and replace with native Avalonia controls#144
Draft
Remove FluentAvaloniaUI package and replace with native Avalonia controls#144
Conversation
…rols Agent-Logs-Url: https://github.com/Jack251970/Math-Editor/sessions/51fda940-c030-43e4-addb-50c8fc40a2fb Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Jack251970/Math-Editor/sessions/51fda940-c030-43e4-addb-50c8fc40a2fb Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Jack251970
April 10, 2026 08:33
View session
The Avalonia and Avalonia.Desktop package references in Editor.Desktop.csproj were downgraded from 12.0.0 to 11.3.13 to ensure compatibility with other dependencies.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Replace all FluentAvaloniaUI usages with native Avalonia equivalents, removing the third-party dependency.
Changes
FluentAvaloniaTheme→ nativeFluentTheme; added explicitAvalonia.Themes.Fluentpackage referenceui:FontIconwithTextBlockin MainWindow.axaml and EditorControl.axaml.cs context menu (usingTextproperty instead ofGlyph)ContentDialogHelperto delegate to the existingMessageBoxwrapper (MessageBox.Avalonia) while preserving theContentDialogChangedcallback for caret timer controlMenuFlyout,MenuItem, andSeparatorin the context menu required no changes — they resolve to nativeAvalonia.Controlstypes once the FluentAvalonia using directive is removed.