<Window x:Class="StammGenerator.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:local="clr-namespace:StammGenerator"
        mc:Ignorable="d"
        WindowState="Maximized"
        xmlns:view="clr-namespace:StammGenerator.Views"
        xmlns:viewmodel="clr-namespace:StammGenerator.ViewModel"
        
        FontSize="18"
        Title="MainWindow" Height="450" Width="800">
    <Window.Resources>
        <DataTemplate DataType="{x:Type viewmodel:HomeViewModel}">
            <view:HomeView />
        </DataTemplate>
        <DataTemplate DataType="{x:Type viewmodel:ManholeListViewModel}">
            <view:SchachtListView />
        </DataTemplate>
        <DataTemplate DataType="{x:Type viewmodel:ManholeEditViewModel}">
            <view:SchachtEditView />
        </DataTemplate>
        <DataTemplate DataType="{x:Type viewmodel:ManholeImportViewModel}">
            <view:SchachtImportView />
        </DataTemplate>
        <DataTemplate DataType="{x:Type viewmodel:HaltungListViewModel}">
            <view:HaltungListView />
        </DataTemplate>
        <DataTemplate DataType="{x:Type viewmodel:HaltungEditViewModel}">
            <view:HaltungEditView />
        </DataTemplate>

        <DataTemplate DataType="{x:Type viewmodel:AuftraggeberListViewModel}">
            <view:AuftraggeberListView />
        </DataTemplate>

        <DataTemplate DataType="{x:Type viewmodel:ProjektListViewModel}">
            <view:ProjektListView />
        </DataTemplate>
        <DataTemplate DataType="{x:Type viewmodel:ProjektEditViewModel}">
            <view:ProjektEditView />
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <view:MainWindowNavigationBar Grid.Column="0" />
        
        <ContentControl Grid.Column="1" Content="{Binding CurrentViewModel}" />
        <StatusBar Grid.Row="1" Grid.ColumnSpan="2">
            <StatusBarItem Content="{Binding Projektnummer}" />
        </StatusBar>
    </Grid>
</Window>
