Strange bug with Merged Dictionaries

Coordinator
Sep 26, 2009 at 11:28 AM

I have come across this issue recently and have a solution for it, but I don't love the solution.  I am attempting to reference certain templates at the application level, I normally reference them in the app.xaml file.  For example,

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
 my "Temporary Solution" a.k.a. Jury rig is to merge the dictionaries in the codebehind.  I would prefer to avoid having to do this.  
Any thoughts on why the above code is not working?  Ideally, I would like to keep the styles in a folder named Assets.