I have been using Prism for a while and enjoy how much easier it is to separate my modules.
This is especially convenient for view and view models, since you can enter view models through interfaces and views through the region manager.
Unfortunately, this only works when my views are completely filled with user controls, if I'm missing something here (and I sincerely hope so).
Many times, however, I will create a ViewModel and corresponding DataTemplate. They can then be used by other assemblies to create a view.
My problem is that I can’t see a link to these data tables without a link to the containing assembly, so in my xaml file I write something like:
<ResourceDictionary Source="pack://application:,,/......>
Of course, this is not completely untied, although I try to make sure that I am not referencing the assembly elsewhere in my code.
Another solution that I was thinking about was to put this data into the infrastructure project, but I also don’t really like it, because I want everything that belongs to the module to be contained in it (with the exception of interfaces, of course).
So, does anyone have a good workaround, or did I miss some Prism feature?