<mah:MetroWindow x:Class="VECTO3GUI.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:VECTO3GUI"
        xmlns:interfaces="clr-namespace:VECTO3GUI.ViewModel.Interfaces"
        xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:impl="clr-namespace:VECTO3GUI.ViewModel.Impl"
        xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
        xmlns:views="clr-namespace:VECTO3GUI.Views"
        mc:Ignorable="d"
        Title="{Binding Version}" Icon="Resources/Icon2.ico" Height="515.36" Width="972.48" WindowStartupLocation="CenterScreen"
        d:DataContext="{d:DesignInstance Type=impl:MainWindowViewModel, IsDesignTimeCreatable=False}">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition/>
            <RowDefinition Height="20"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <StackPanel Orientation="Vertical">

                <Menu IsMainMenu="True" Style="{DynamicResource MetroMenu}">
                    <MenuItem Header="File" VerticalAlignment="Center">

                        <MenuItem Header="Add File" Command="{Binding CurrentViewModel.AddJob}"/>
                        <MenuItem Header="Edit Job" 
                                  Command="{Binding CurrentViewModel.EditJob}"
                                  CommandParameter="{Binding CurrentViewModel.SelectedJobEntry}"/>
                        <MenuItem Header="Remove Job" 
                                  Command="{Binding CurrentViewModel.RemoveJob}"
                                  CommandParameter="{Binding CurrentViewModel.SelectedJobEntry}"/>
                        <Separator HorizontalAlignment="Stretch" Background="Gray"/>
                        <MenuItem Header="Exit" Command="{Binding CurrentViewModel.ExitMainCommand}"
                                  CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
                    </MenuItem>



                    <MenuItem Header="Tools" VerticalAlignment="Center">
                        <!--<MenuItem.Icon>
                            <iconPacks:PackIconModern Width="15" Height="15" Kind="Tools" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Green" />
                        </MenuItem.Icon>-->
                        <MenuItem Header="Create Single Bus Job"
                                  Command="{Binding CurrentViewModel.AddBusJob}" CommandParameter="{Binding Source={x:Static impl:JobType.SingleBusJob}}"/>
                        <MenuItem Header="Create Completed Bus Job"
                                  Command="{Binding CurrentViewModel.AddBusJob}" CommandParameter="{Binding Source={x:Static impl:JobType.CompletedBusJob}}"/>
                        <MenuItem Header="Create Completed XML"
                                  Command="{Binding CurrentViewModel.CreateNewJob}"/>
                        <Separator HorizontalAlignment="Stretch" Background="Gray"/>
                        <MenuItem Header="Settings"
                                  Command="{Binding CurrentViewModel.OpenSettings}"/>
                    </MenuItem>


                    <MenuItem Header="Help" VerticalAlignment="Center">
                        <MenuItem Header="About Vecto" 
                                  Command="{Binding CurrentViewModel.AboutViewCommand}"/>
                    </MenuItem>
                </Menu>

            <Separator HorizontalAlignment="Stretch" Background="Gray"/>


            </StackPanel>
        </Grid>

        <Grid Grid.Row="1">
            <ContentControl Content="{Binding CurrentViewModel}" />
        </Grid>


        <Grid Grid.Row="2">
            <StatusBar >
                <StatusBarItem><TextBlock Text="{Binding CurrentViewModel.Status}"/></StatusBarItem>
                <StatusBarItem HorizontalAlignment="Right"><ProgressBar Width="150" Height="20" Value="{Binding CurrentViewModel.Progress}"></ProgressBar></StatusBarItem>
                </StatusBar>
        </Grid>


        <!--<Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Vertical" Background="Gray" Grid.Column="0">
            <Button mah:ControlsHelper.ContentCharacterCasing="Normal" Name="BtnHome" Background="Gray" Foreground="White" FontSize="16pt" Margin="0,20,0,0" BorderBrush="Gray" Width="150"  Padding="10,0,0,0">Home</Button>
            <Button Name="BtnSettings" Width="150" Background="Gray" Foreground="White" FontSize="16pt" Margin="0,5,0,0" BorderBrush="Gray" HorizontalAlignment="Left" Padding="10,0,0,0">Settings</Button>
            <Button Name="BtnHelp" Width="150" Background="Gray" Foreground="White" FontSize="16pt" Margin="0,5,0,0" BorderBrush="Gray" HorizontalAlignment="Left" Padding="10,0,0,0">Help</Button>
        </StackPanel>-->
    </Grid>



</mah:MetroWindow>