How to have a dynamic theme color in WPF
Posted
by Ingó Vals
on Stack Overflow
See other posts from Stack Overflow
or by Ingó Vals
Published on 2010-06-10T12:08:34Z
Indexed on
2010/06/10
12:12 UTC
Read the original article
Hit count: 287
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.
© Stack Overflow or respective owner