Best way to override colours for controls?
See original GitHub issueI want to give the buttons a border (in another project that uses the nuget package). How should I override the color key in my own resource dictionary?
For example, in Dark.xaml there is
<m:StaticResource x:Key="ButtonBorderBrush" ResourceKey="SystemControlForegroundTransparentBrush" />
If I want to set this to SystemControlBackgroundBaseMediumHighBrush what is the best way that will still respect the theme settings?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Changing colours of Custom Controls - NI Community
I've made a custom control by adding a logo to a standard boolean square button. I want to be able to change the...
Read more >Cannot override controls foreground colour in wpf
Its effectively ignoring the Foreground setter property. The only way to get this to work as expected is to the do following: <Button...
Read more >Override Button Color with Theme in UI for WinForms
What's the best way to do this while still retaining the "look" of the theme. The theme currently in use is "Breeze" but...
Read more >Can I change the color of control panel icons : r/Huawei
If you only want to change the color, select "customize" instead of "apply" on the theme you just downloaded and make sure there's...
Read more >How to Change the Xbox Button Color on the Elite Series 2 ...
Look at the Color tab to find the color that you'd like to use for your controller. There will be a variety of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hello,
Is it still possible to override the default resources by taking into account the theme on v0.9.2? As
DefaultThemeResourcesdoesn’t exist anymore, I don’t know how to get it works.In advance, thanks for your help and for this great library!
EDIT: It’s okay, I just found
<ui:ThemeResources>element in App.xaml:Currently this doesn’t seem to take effect at design time, but does work at run time. And usually you’ll need to override the brushes used by other states (such as
ButtonBorderBrushPointerOver) as well.