Including More than One ResourceDictionary in Your Xaml

I have one giant Xaml ResourceDictionary that's becoming unwieldy to manage. The solution is simple. Use MergedDictionaries.

Snippet:

<Window.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="FileResources1.xaml" />
            <ResourceDictionary Source="FileResources2.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Window.Resources>

Are you a Git user? Let me help you make project management with Git simple. Checkout Gitpilot.

Follow me on Twitter @jprichardson and read my blog on entrepreneurship.

-JP

comments powered by Disqus
Proudly built with Sky.