2

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

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.

Community
  • 1
  • 1
Shashank Bisen
  • 213
  • 3
  • 17

0 Answers0