Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to load ResourceDictionary from another assembly.

I am able to read a resource file which is in the same assembly by the below lines of code

C#
ResourceDictionary rd = new ResourceDictionary();
rd.Source = new Uri("ms-appx:///Common/StandardStyles.xaml", UriKind.Absolute);
object o;
rd.TryGetValue("ColorDarkOrange", out o);


Found the below links but these doesn't work well with windows 8 app (Winrt)

Instantiate ResourceDictionary xaml from other Assembly

ResourceDictionary in a separate assembly

Looking forward for help.
Posted

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