Click here to Skip to main content
15,883,921 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How I can select some different resource dictionary during execution time .

ie button1 click Resource dictionary1 will come into picture similarly
button2 click Resource dictionary2 will come into picture

Thanks in advance

iqbal
Posted

1 solution

Here's your solution. Please not you will obviously have to adapt it to your own project by way of click events on your buttons. But this is the the way to go about achieving what you wanted.

http://weblogs.asp.net/psheriff/archive/2009/12/01/load-resource-dictionaries-at-runtime-in-wpf.aspx[^]
 
Share this answer
 
Comments
[no name] 31-Jan-12 8:41am    
I tried earlier with this but what are the namespace required to make the code run: File.Exists(fileName) shows an error
Dean Oliver 31-Jan-12 10:30am    
System.IO if you have a problem resolving namespaces just hover over the class and press ctrl and dot at the same time to resolve a class to a namespace. ctrl
+ .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900