I have the following content control:
<ContentControl Content="{Binding Content}">
  <ContentControl.Resources>
    <DataTemplate DataType="{x:Type viewModels1:A}">
      <views1:A />
    </DataTemplate>
    <DataTemplate DataType="{x:Type viewModels2:B}">
      <views2:B />
    </DataTemplate>
  </ContentControl.Resources>
</ContentControl>
Now I want to move viewModels1:A and views1:A into a separate project P1 and viewModels2:B and views2:B into another project P2. P1 may contain a resource dictionary with
<DataTemplate DataType="{x:Type viewModels1:A}">
  <views1:A />
</DataTemplate>
and P2 a similar dictionary with
<DataTemplate DataType="{x:Type viewModels2:B}">
  <views2:B />
</DataTemplate>
How can I make the ContentControl of the main project aware of these mapping between view model and view? Is it possible not to state the types viewModels:A, views1:A, viewModels2:B and views2:B explicitly in the main project but just obtain the mapping somehow from P1 and P2?
 
    