ResourceDictionary Cascading

Topics: Bootstrappers & IoC, Bugs
Dec 8, 2012 at 11:22 PM
Edited Dec 8, 2012 at 11: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 7: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 7:30 PM
Edited Dec 9, 2012 at 7: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 4:02 AM

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

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

Have you tried using the dictionary full absolute Uri?

I mean something like

Dec 12, 2012 at 2:01 AM

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