question

kijato-6132 avatar image
1 Vote"
kijato-6132 asked Henry-5817 commented

WinUI - Using ResourceDictionary from a DLL in MergedDictionary

I have this requirement where I need to access a resource dictionary defined in a DLL in my project as a merged dictionary. The whole project is setup as a C++/WinRT xaml hosted MFC application. And the required ResourceDictionary is a part of another dll.

 <ResourceDictionary.MergedDictionaries> 
 <ResourceDictionary Source="/CommonDictionary.xaml"/>
  </ResourceDictionary.MergedDictionaries>

As shown here in the Source property, CommonDictionary.xaml exists as part of another projects binary(dll) and I need to merge that file to my project by specifying the a path to it.
I've already tried something like this;

 `<ResourceDictionary Source="pack://application:,,,/myNameSpace;component/CommonDictionary.xaml"/>` 

This didn't work in WinUI. Any help would be much appreciated.

not-supported
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Even I have the same problem with WinUI.

0 Votes 0 ·

0 Answers