I want to define multiple themes for my application and switch them every time I like, but I want to put styles of each control of each theme in a separate ResourceDictionary so it makes files in a businesslike style and I can manage them fast and easily.
But the problem is:Styles of the nested Resource Dictionaries does not apply.
any suggestion?
thank you.
I want to define multiple themes for my application and switch them every time
Share
I assume that you were using seperate resource dictionary for each control and repeating it for your other themes as well.
So I suggest you to keep a resource dictionary for each theme eg: Theme1.xaml .. and merge all your resource dictionaries which come under this theme..
example:
You can add and remove this resource dictionary to your application for switching your theme. Hope it helps. 🙂