How to bind the PrimaryColor of Material.Avalonia to something in my axaml? #491
Answered
by
jyswjjgdwtdtj
jyswjjgdwtdtj
asked this question in
Q&A
Replies: 1 comment 2 replies
|
You can't bind to context due to you don't have the DataContext in your App.axaml. But you can bind to other element as usual. Or use x:Static as usual. But you can manage it via code behind as usual. Can you describe what goal you trying to achieve? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oh, i did it just {DynamicResource MaterialPrimaryMidBrush}. But what makes me distressed is that theres no code hint for these resources.
Can it create an alias for these brushes?