How to have a dynamic theme color in WPF
- by Ingó Vals
In WPF I have a few resource dictionaries and in them styles for my panels and controls in my app. I'm reusing the same colors again and again. I actually have 5 colors and they give my app a good color-scheme.
However if I wan't to change the theme I have to go into the RD's and change each and every color there.
I would like to somewhere have the colors set but don't know how or where. I tried to put a color tag in one RD but as soon as I referenced it in the same RD Visual Studio crashed.
Also the best solution would be that I could have the color as a dynamic setting in the app itself so users could even change it themselves.