How to add multiple content control on same window

26 views Asked by At

I have window where I have load 4 views. 2 each on a content control.

<ContentControl Grid.Column="1" Content="{Binding}"  BorderBrush="Black" BorderThickness="10"/>
<Window.Resources>
        <DataTemplate x:Name="DeviceListView" DataType="{x:Type viewmodels:DeviceViewModel}">
            <views:DeviceList DataContext="{Binding}"/>
        </DataTemplate>
        <DataTemplate x:Name="TestCaseListView" DataType="{x:Type viewmodels:TestCaseViewModel}">
            <views:TestCaseView DataContext="{Binding}"/>
        </DataTemplate>
    </Window.Resources>

By this I am using content control.

Please suggest how to use multiple content control on same window.

0

There are 0 answers