I usually create a Class Library which will contain everything I need:
- Custom controls
- Resource Dictionaries
- Various resources such as pictures
- Custom .cs files (custom converters for example)
Beware that for some reason, Visual Studio 2010 won't propose you to add a ResourceDictionary
in a class library.
To be honest I absolutely don't know why it won't ask me to add it, but I ended up using a workaround: Either:
- manually create the .xaml file and then reference it to Visual Studio
- create a WPF user control, then remove the .xaml.cs file and use the xaml as a
ResourceDictionary
That's all for me, and it works perfectly for having a centralized project containing common controls/UI material