Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
I have a wpf application.
I made one resource file for buttons, labels, comboboxes, etc. which are typed styles.

Now i am using one third party control in one window which i will popup from my application.

Now when i remove resource file when the popup window loaded using following code,

ResourceDictionary skin = new ResourceDictionary(); skin.Source = new Uri(@"Skins\Skin.xaml", UriKind.Relative); Application.Current.Resources.MergedDictionaries.Remove(skin);

By doing this, it also not apply styles in my application.

Is there anything wrong i m doing???/
Posted
Updated 11-Jan-10 23:11pm
v2

1 solution

If you remove the resource file, your *application* won't find it. I think your ownly recourse is to merge the resource file in each window that needs it (and take the merging out of your app.xaml file).
 
Share this answer
 

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

  Print Answers RSS


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