C
C#2y ago
Codsworth

❔ how to set a background color from resource in avalonia ?

i don't get a difference between two types of codes, can someone clear that thing for me ?
2 Replies
Codsworth
Codsworth2y ago
I need to have set template colors for UI, for example my Dark my Bright and so on ... i have decided what color values will be , I have 10 of them what is the best way to make a template container to assign those colors to various elements in UI so instead of background="#303300" I need to have something like background="myVididDark I see 2 ways , first is <styles> and setters and another is static resources, how to do that ?
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.