Including More than One ResourceDictionary in Your Xaml
December 8, 2010 Leave a comment
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