How to use a custom theme? Weird behavior when trying to use xmlns:xy instead of the default xmlns #571
Unanswered
BerndBoruttau
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
as my Avalonia journey continues I wrote a custom theme, extending the fluent theme and covering my own controls.
Up until now I used
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Some.Custom.Theme")]inAssemblyInfoand<SomeTheme/>in the application styles.In the process of unification with other libraries I switched to
[assembly: XmlnsDefinition("MyLib", "Some.Custom.Theme")],xmlns:myLib="MyLib"and<myLib:SomeTheme/>.Suddenly I get a compiler warning that the Tag
SomeThemecould not be found.If I switch back to the avalonia url it works just fine.
Any clue?
Cheers,
Bernd
All reactions