<UserControl x:Class="MachineCNPageUC"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
   xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
   mc:Ignorable="d" 
   d:DesignHeight="768" d:DesignWidth="1280">

   <!-- Definizione della ImportPage -->
   <Border Background="{DynamicResource OmagCut_Gray}" >

      <Grid Name="ImportPageGrid">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="7.5*"/>
            <ColumnDefinition Width="1.5*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="5*"/>
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
            <RowDefinition Height="1.5*"/>
            <RowDefinition Height="1.5*"/>
            <RowDefinition Height="1.5*"/>
            <RowDefinition Height="4.5*"/>
         </Grid.RowDefinitions>

         <GroupBox Name="CNModeGpBx" Style="{DynamicResource OmagCut_GroupBox}" Grid.ColumnSpan="2" Margin="0,0,4,0">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="1.5*"/>
                  <ColumnDefinition Width="1.5*"/>
               </Grid.ColumnDefinitions>

               <Button Name="AutoBtn" Grid.Column="0"
                  Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="ManualBtn" Grid.Column="1"
                  Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="MDIBtn" Grid.Column="2"
                  Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="SingleBtn" Grid.Column="3"
                  Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="HomeBtn" Grid.Column="4"
                  Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>

            </Grid>

         </GroupBox>

         <GroupBox Name="CommandsGpBx" Style="{DynamicResource OmagCut_GroupBox}" Grid.Column="2" Grid.ColumnSpan="2">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
               </Grid.ColumnDefinitions>

                    <Button Name="StartBtn" Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="StopBtn" Grid.Column="1"
                  Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="ResetBtn" Grid.Column="2"
                  Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>

            </Grid>

         </GroupBox>

            <GroupBox Name="MDICommandGpBx" Style="{DynamicResource OmagCut_GroupBox}" Grid.Row="1">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="6*"/>
                  <ColumnDefinition Width="1.5*"/>
               </Grid.ColumnDefinitions>

                    <EgtWPFLib:EgtTextBox Name="MDITxBx" Margin="10,0,10,0" Style="{DynamicResource OmagCut_MDIKeyboardTextBox}"/>
               <Button Name="MDIConfirmBtn" Grid.Column="1" 
               Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>

            </Grid>

         </GroupBox>

         <GroupBox Name="PartProgTransferGpBx" Style="{DynamicResource OmagCut_GroupBox}" Grid.Row="2"
            Grid.ColumnSpan="3">
            <Grid>
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="2*"/>
               <ColumnDefinition Width="2*"/>
               <ColumnDefinition Width="2*"/>
               <ColumnDefinition Width="2*"/>
               <ColumnDefinition Width="2*"/>
            </Grid.ColumnDefinitions>

               <Button Name="DownloadBtn" Grid.Column="0"
               Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="UploadBtn" Grid.Column="1"
               Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="ActivateBtn" Grid.Column="2"
               Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <Button Name="DeleteBtn" Grid.Column="3"
               Style="{DynamicResource OmagCut_RightGrayGradientYellowTextButton}"/>
               <EgtWPFLib:EgtTextBox Name="DULoadTxBx" Grid.Column="4" Width="100" Text="900.0"
                  Style="{DynamicResource OmagCut_KeyboardTextBox}"/>

            </Grid>
         </GroupBox>

            <GroupBox Name="PowerGpBx" Style="{DynamicResource OmagCut_GroupBox}" Grid.Row="2"
            Grid.Column="3" Grid.ColumnSpan="3" Margin="5,0,0,0">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="2*"/>
                    </Grid.ColumnDefinitions>
                    <!--PowerON-->
                    <ToggleButton Name="PowerONBtn" Grid.Column="0"
                                  Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}"
                                  Foreground="White"/>
                    <!--PowerOFF-->
                    <ToggleButton Name="PowerOFFBtn" Grid.Column="1"
                                  Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}"
                                  Foreground="White"/>
                </Grid>
            </GroupBox>

            <GroupBox Name="ErrorLstGpBx" Style="{DynamicResource OmagCut_GroupBox}" Grid.Row="3" Grid.ColumnSpan="4">
            <ListBox Name="ErrorLstBx">
               <ListBox.ItemTemplate>
                  <DataTemplate>
                     <TextBlock Text="{Binding}" Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                  </DataTemplate>
               </ListBox.ItemTemplate>
            </ListBox>

         </GroupBox>

      </Grid>

   </Border>

</UserControl>
