SimpleTheme / FluentTheme: Migration from 0.10.18 to 11.0.0-preview #9314
llfab
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because I was not able to get this right, as quickly as I hoped for, I just wanted so summarize here for everybody how to migrate a freshly created (or an existing) project with resprect to themes.
If you use the VS 2022 template for project creation this will target version 0.10.18 (or similar).
TrimmableAssembly
and similar from the project file<FluentTheme Mode="Dark />
element in App.axaml anymore.<StyleInclude ...>
which made it work but should not be necessarySee below the working project file and App.axaml for 11.0.0-preview3:
Project file
App.axaml (with no style include, just left the comment there to show that this is not necessary)
Most likely most of you have figured this out already. It did take me some time and some back and forth on Avalonia Gitter (thanks there) which is the reason to again bring this up here.
Beta Was this translation helpful? Give feedback.
All reactions