<Window x:Class="eDosStation.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:eDosStation"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="eDose Station" Height="814.417" Width="1316.258" 
        FontFamily="Segoe UI"
        FontSize="36" 
        WindowStartupLocation="CenterScreen" WindowState="Maximized" WindowStyle="None"
        Loaded="Window_Loaded" GotFocus="Window_GotFocus" LostFocus="Window_LostFocus"
        >
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <Menu.ItemsPanel>
                <ItemsPanelTemplate>
                    <DockPanel HorizontalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </Menu.ItemsPanel>
            <MenuItem Header="E_xit" Name="mExit" Click="mExit_Click" HorizontalAlignment="Right" />
            <MenuItem Header="Settings" Click="MenuItem_Click" />
            <MenuItem Header="Advanced Settings" >
                <MenuItem Header="Enc" Name="mEnc" Click="MEnc_Click" />
            </MenuItem>
            <MenuItem Header="About" Name="mAbout" Click="mAbout_Click" HorizontalAlignment="Right" />
        </Menu>
        <StatusBar DockPanel.Dock="Bottom" >
            <StatusBarItem Name="Status"  Content="Offline" HorizontalContentAlignment="Center"  HorizontalAlignment="Stretch" Style="{StaticResource xstatusOnLine}"    />
        </StatusBar>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="*"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <DockPanel Grid.Row="1">
                <Grid DockPanel.Dock="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Image x:Name="logo" Source="/Images/logoh60.png" Height="60" HorizontalAlignment="Left" Margin="1,0,0,10" />
                    <TextBlock Grid.Column="1" FontSize="30" Text="HPH eDos" TextAlignment="Center" Foreground="{StaticResource sckbP}" FontWeight="Bold" VerticalAlignment="Center" Background="{DynamicResource sckbLB}" Height="{Binding ElementName=logo, Path=ActualHeight}"  />
                    <TextBlock Grid.Column="2" FontSize="30" Name="tbTime" Text="2021-04-02 08:00" TextAlignment="Right" VerticalAlignment="Center" Foreground="{StaticResource sckbP}" HorizontalAlignment="Right" Padding="20,0" Background="{DynamicResource sckbLB}" Height="{Binding ElementName=logo, Path=ActualHeight}"/>
                </Grid>
                <StackPanel DockPanel.Dock="Left" Width="100" />
                <StackPanel DockPanel.Dock="right" Width="100" />
                <TextBlock DockPanel.Dock="Bottom" Name="tVersion" Text="eDosStation 2021 v" FontSize="12" HorizontalAlignment="Center" />
                <Grid  >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Border Name="ibComment" Grid.Row="0" Background="Bisque" Visibility="Collapsed">
                        <TextBlock Name="itComment" HorizontalAlignment="Stretch" TextWrapping="Wrap" FontSize="15" Margin="10,10,10,10" Foreground="{StaticResource sckbP}" />
                    </Border>
                    <telerik:RadButton Grid.Row="1" Grid.Column="0" Content="Start visit" Name="bEntry" Click="BEntry_Click" Margin="20,20,20,20"  Style="{StaticResource bigButton}"  />
                    <telerik:RadButton Grid.Row="2" Grid.Column="0" Content="End Visit" Name="bExit" Click="BExit_Click" Margin="20,20,20,20" Style="{StaticResource bigButton}" />
                    <telerik:RadButton Grid.Row="3" Grid.Column="0" Content="EPD Info &amp; Dose" Click="Button_Click" Margin="20,20,20,20" Style="{StaticResource bigButton}" />
                </Grid>
            </DockPanel>
        </Grid>
    </DockPanel>
</Window>
