Why I can't use controls in FluentAvalonia? #377
Unanswered
akchiji888
asked this question in
Q&A
Replies: 2 comments
-
You don't even have a button in your XAML so it doesn't make sense to me. However, it works for other projects so it's something wrong with your configuration. Do you have something similar to the below configured in App.xaml? <Application
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:fas="using:FluentAvalonia.Styling"
x:CompileBindings="True">
<Application.Styles>
<fas:FluentAvaloniaTheme
TextVerticalAlignmentOverrideBehavior="EnabledNonWindows" />
</Application.Styles>
</Application>
If so you can use it in other views just as you are doing. <ResourceDictionary
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:fac="using:FluentAvalonia.UI.Controls">
<ControlTheme></ControlTheme>
</ResourceDictionary> |
Beta Was this translation helpful? Give feedback.
0 replies
-
@akchiji888 if the issue persists, please provide a full minimal sample to reproduce. |
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
-
I have imported FluentAvalonia into my projects successfully,but I can't use controls in FluentAvalonia.
This is my XMAL file:
And this is the error message:
Beta Was this translation helpful? Give feedback.
All reactions