<UserControl x:Class="DirectCutPageUC"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
   xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
   mc:Ignorable="d" 
   d:DesignHeight="853.3" d:DesignWidth="1280">

   <!-- Definizione della DirectCutPage -->
   <Grid Name="DirectCutPageGrid" >
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="3*"/>
         <ColumnDefinition Width="12*"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
         <RowDefinition Height="1*"/>
         <RowDefinition Height="8*"/>
         <RowDefinition Height="1*"/>
      </Grid.RowDefinitions>

      <!-- Definizione della Grid superiore -->
      <Grid Name="UpperButtonGrid" Grid.Column="1" >
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="2*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="7*"/>
         </Grid.ColumnDefinitions>

          <Button Name="PhotoBtn" Grid.Column="0" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
            <Image Source="{DynamicResource PhotoImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
         </Button>
            <Button Name="RawPartBtn" Grid.Column="1" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
            <Image Source="{DynamicResource RawPartImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
         </Button>

         <Button Name="MachViewModeBtn" Grid.Column="3"
            Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
            <Image Source="{DynamicResource MHTImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>
         </Button>

      </Grid>

         <!-- Definizione della Grid laterale -->
      <Grid Name="LeftButtonGrid" Grid.Row="1" >
         <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="7*"/>
         </Grid.RowDefinitions>

         <!-- Definizione della Grid laterale -->
         <Grid Name="CutTypeGrid" Grid.Row="1" >
            <Grid.RowDefinitions>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
                </Grid.RowDefinitions>
                <Button Name="ManualBtn" Grid.Column="2" Grid.Row="0"                    
                        Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="140"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{DynamicResource Movimento-manualeImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="ManualTxt" Grid.Column="1"
                                   Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </Grid>
                </Button>

                <Button Name="SingleCutBtn" Grid.Row="1"
                        Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="140"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{DynamicResource Taglio-singoloImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="SingleCutTxt" Grid.Column="1"
                                   Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </Grid>
                </Button>

                <Button Name="MultipleCutBtn" Grid.Row="2"
                        Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="140"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{DynamicResource Taglio-multiploImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="MultipleCutTxt" Grid.Column="1"
                                   Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </Grid>
                </Button>

                <Button Name="GridCutBtn" Grid.Row="3"
                        Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="140"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{DynamicResource Taglio-grigliaImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="GridCutTxt" Grid.Column="1"
                                   Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </Grid>
                </Button>


                <Button Name="SingleDrillBtn" Grid.Row="4"
                        Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="140"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{DynamicResource Foro-singoloImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="SingleDrillTxt" Grid.Column="1"
                                   Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </Grid>
                </Button>

                <Button Name="FlatteningCutBtn" Grid.Row="5"
                        Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="140"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{DynamicResource SpianaturaImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="FlatteningCutTxt" Grid.Column="1"
                                   Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </Grid>
                </Button>
             
                <Button Name="PolishingBtn" Grid.Row="6"
                        Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="140"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{DynamicResource LucidaturaImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="PolishingTxt" Grid.Column="1"
                               Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </Grid>
                </Button>

                <Button Name="CopyTemplateBtn" Grid.Row="7"
                    Style="{DynamicResource OmagCut_YellowIconButton}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"/>
                        <ColumnDefinition Width="140"/>
                    </Grid.ColumnDefinitions>
                    <Image Source="{DynamicResource Copia-dimaImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                    <TextBlock Name="CopyTemplateTxt" Grid.Column="1"
                               Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                </Grid>
            </Button>
             
            <Button Name="SawTestBtn" Grid.Row="8"
                    Style="{DynamicResource OmagCut_YellowIconButton}">
               <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"/>
                        <ColumnDefinition Width="140"/>
                    </Grid.ColumnDefinitions>
                    <Image Source="{DynamicResource Test-lamaImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" />
                        <TextBlock Name="SawTestTxt" Grid.Column="1"
                               Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
            </Grid>
            </Button>

        </Grid>
      
      </Grid>
      
      <!-- Definizione della Grid laterale per bottoni macchina -->
      <Grid Name="MachineButtonGrid" Grid.Row="1">
         <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="7*"/>
         </Grid.RowDefinitions>
      </Grid>

      <!-- Definizione della Grid inferiore -->
      <Grid Name="LowerButtonGrid" Grid.Column="1" Grid.Row="2" >
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="5*"/>
            <!--<ColumnDefinition Width="1*"/>-->
            <ColumnDefinition Width="1*"/>
         </Grid.ColumnDefinitions>

         <ToggleButton Name="ControlsMachineBtn" Grid.Column="0"
               Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}">
            <Image Source="{DynamicResource ManualImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>
         </ToggleButton>

         <ToggleButton Name="VacuumMachineBtn" Grid.Column="1"
               Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}">
            <Image Source="{DynamicResource VacuumImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>
         </ToggleButton>
          
          <!--Comando asse X-Y-->
          <ToggleButton Name="XYBtn" Grid.Column="2"
               Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}">
                <Image Source="{DynamicResource XYJogImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>
         </ToggleButton>
          
          <!--Comando asse Z-C-->
          <ToggleButton Name="ZCBtn" Grid.Column="3"   
               Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}">
              <Image Source="{DynamicResource ZCJogImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>
          </ToggleButton>

         <!--Comando asse Z-B-->
         <ToggleButton Name="ZBBtn" Grid.Column="4"
               Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}">
                <Image Source="{DynamicResource ZBJogImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>
         </ToggleButton>

         <!--Comando Remote-->
         <ToggleButton Name="RemoteBtn" Grid.Column="5"
               Style="{DynamicResource OmagCut_GradientYellowIconToggleButton}">
            <!--<Image Source="{DynamicResource VacuumImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>-->
         </ToggleButton>

         <!--Comando Manula/MDI-->
         <Button Name="ManualModeBtn" Grid.Column="7"
                Style="{DynamicResource OmagCut_YellowGradientYellowIconButton}">
             <Image Source="{DynamicResource ManualImg}" Style="{StaticResource OmagCut_ScaleButtonIcon}"/>
         </Button>

      </Grid>

   </Grid>

</UserControl>
