<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:moduleA="clr-namespace:ModuleA;assembly=ModuleA"
    xmlns:moduleB="clr-namespace:ModuleB;assembly=ModuleB"
                    xmlns:local="clr-namespace:RadDockingAndPRISM">
    <DataTemplate DataType="{x:Type moduleA:Panel1Vm}">
        <Border Background="Red">        
            <moduleA:Pane1 Margin="5"/>
        </Border>

    </DataTemplate>

    <DataTemplate DataType="{x:Type moduleA:Panel2Vm}">
        <Border Background="Red">
            <moduleA:Pane2 Margin="5"/>
        </Border>
    </DataTemplate>

    <DataTemplate DataType="{x:Type moduleB:Panel3Vm}">
        <Border Background="Red">
            <moduleB:Pane3 Margin="5"/>
        </Border>
    </DataTemplate>

    <DataTemplate DataType="{x:Type moduleB:Panel4Vm}">
        <Border Background="Red">
            <moduleB:Pane4 Margin="5"/>
        </Border>
    </DataTemplate>
</ResourceDictionary>