WPF Resource Dictionary in a separate assembly

Posted by Gustavo Cavalcanti on Stack Overflow See other posts from Stack Overflow or by Gustavo Cavalcanti
Published on 2008-12-03T17:44:54Z Indexed on 2010/03/27 10:03 UTC
Read the original article Hit count: 665

I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I could add them to the applications' assemblies, but it's better if I compile these resources in one single assembly and have my applications reference it, right? After the resource assembly is built, how can I reference it in the App.xaml of my applications? Currently I use ResourceDictionary.MergedDictionaries to merge the individual dictionary files. If I have them in an assembly, how can I reference them in xaml?

Thanks for your help!

  • Gustavo

© Stack Overflow or respective owner

Related posts about wpf

Related posts about resourcedictionary