You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to override the accent color at the element level in XAML?
I saw something that I thought would be promising in the Sample app but doesn't do quite what I want.
What I'm looking for is being able to use a different accent color for different buttons depending on what I might need it for. For example, having the save button be set to the default accent color is fine, but if I want a delete button and want it to be red for example, how would I accomplish this? I like that when using the accent color, it automatically calculates all the other colors used by controls etc.
This is the sample I found, but doesn't actually change the accent color, it just changes a single brush based on theme.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to override the accent color at the element level in XAML?
I saw something that I thought would be promising in the Sample app but doesn't do quite what I want.
What I'm looking for is being able to use a different accent color for different buttons depending on what I might need it for. For example, having the save button be set to the default accent color is fine, but if I want a delete button and want it to be red for example, how would I accomplish this? I like that when using the accent color, it automatically calculates all the other colors used by controls etc.
This is the sample I found, but doesn't actually change the accent color, it just changes a single brush based on theme.
Beta Was this translation helpful? Give feedback.
All reactions