<Window x:Class="MyProject.Client.ClientUI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewmodels="clr-namespace:MyProject.Client.ClientUI.ViewModels"
xmlns:views="clr-namespace:MyProject.Client.ClientUI.Views"
xmlns:local="clr-namespace:MyProject.Client.ClientUI"
mc:Ignorable="d"
Title="{Binding Name}">
<Window.DataContext>
<viewmodels:MainViewModel />
</Window.DataContext>
<Window.Resources>
<DataTemplate DataType="{x:Type viewmodels:DisplayViewModel}">
<views:DisplayView />
</DataTemplate>
</Window.Resources>
<Grid>
<ContentControl Content="{Binding CurrentViewModel}" />
</Grid>
</Window>
<Window x:Class="MyProject.Client.ClientUI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewmodels="clr-namespace:MyProject.Client.ClientUI.ViewModels"
xmlns:views="clr-namespace:MyProject.Client.ClientUI.Views"
xmlns:local="clr-namespace:MyProject.Client.ClientUI"
mc:Ignorable="d"
Title="{Binding Name}">
<Window.DataContext>
<viewmodels:MainViewModel />
</Window.DataContext>
<Window.Resources>
<DataTemplate DataType="{x:Type viewmodels:DisplayViewModel}">
<views:DisplayView />
</DataTemplate>
</Window.Resources>
<Grid>
<ContentControl Content="{Binding CurrentViewModel}" />
</Grid>
</Window>