I'm having some issues with resource files in my modular application.
I have Infrastructure.DLL
and some custom controls inside this DLL. Those controls using templates from themes/generic.xaml
Issue that I have - Blend doesn't recognize those resources. Visual studio does.
Ideally I'd like to have styles for my cusom controls inside generic.xaml
and styles for other controls somewhere else in common library that I can reference from my modules.
I also need Expression Blend and VS to work properly.
How do I arrange solution to make it happen?
PS. Important! WPF is different but I'm interested in Silverlight solution
You just need to create design time resource for your
generic.xaml
in order to let Blend recoganize it. Take a look at this post.In each of your modules, you create a
ResourceDictionary
like this.Also, in your
.csproj
file, you need to add this. Please note that normally this piece of code is auto-generated by Blend, so if yourResourceDictionary
is auto-generated, you don't need to do the following.Design is the folder I created for storing my
DesignTimeResources.xaml
. I pretty much have the same structure as yours. :)