ResourceDictionary Cascading

Topics: Bootstrappers & IoC, Bugs
Dec 8, 2012 at 10:22 PM
Edited Dec 8, 2012 at 10:24 PM

In a WPF application I have the following application resources defined:

                    <local:Bootstrapper x:Key="Bootstrapper" />

                <ResourceDictionary Source="/MyNamespace;component/Styles.xaml" />

however, the styles defined in Styles.xaml are not cascaded to the main window (I have tried the styles resource both before and after the bootstrapper resource).

Are resource dictionaries not cascaded by Caliburn.Micro?

Dec 9, 2012 at 6:11 PM

I have all of mine before and it works just fine... I also have a few global converters in the same resourcedictionary tag set as the bootstrapper.

Dec 9, 2012 at 6:30 PM
Edited Dec 9, 2012 at 6:31 PM

Interesting, styles in that resource dictionary seem to be cascaded, but not the merged resource dictionary from the second assembly.

Dec 11, 2012 at 3:02 AM

how are you being the second assembly into the mix?  direct reference or discovery?

Dec 11, 2012 at 9:52 AM
Edited Dec 11, 2012 at 9:52 AM

Have you tried using the dictionary full absolute Uri?

I mean something like

Dec 12, 2012 at 1:01 AM

that is actually how the second assembly that holds my styles does the referencing.