Click here to Skip to main content
11,928,078 members (42,728 online)
Rate this:
Please Sign up or sign in to vote.
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

Posted 27-Jan-12 8:21am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.[^]
MohammadIqbal 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 31 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100