i want to split my views project into sereveral modules.
i wanna have a main project that willl have ref to all modules and this main project will generate the view from the modules.
my question is how can i bind all the styles from the application to the other modules?
will it automatically recognize them?
and how will the view model templates will be located? cause now they r in a resource dictionary that i merge in the app.xaml
where shpuld i put them (i want them to be in their module project),
how can i load thos resources?
What you want is easily achieved if you use Prism:
http://www.codeplex.com/CompositeWPF
There’s plenty of samples to get you started there.
The only question you ask that isn’t answered by Prism is the ResourceDictionaries, but there are several ways to get around that, but I think this is the best way: Composite WPF (Prism) module resource data templates
The first answer should get you there. You’ll lose a little design time support in your modules, but everything should come together correctly at runtime this way.