<UserControl x:Class="GridCut"
             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" 
             xmlns:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"
             mc:Ignorable="d" 
             d:DesignHeight="597.3" d:DesignWidth="256">

   <!--<Border CornerRadius="{StaticResource Page_CornerRadius}" Background="{StaticResource OmagCut_LightGray}">-->
   <Border Style="{DynamicResource OmagCut_DirectCutPageBorder}">

      <!-- Definizione della Grid MultipleCut -->
      <Grid Name="SingleCutGrid" >
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*"/>
            <ColumnDefinition Width="1*"/>
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="1*"/>
         </Grid.RowDefinitions>

         <Grid Grid.Row="0" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <ToggleButton Name="Point1Btn" Grid.Column="0"
                          Style="{DynamicResource OmagCut_YellowIconToggleButton}">
               <Image Source="{DynamicResource Acquisisci-P1Img}" Style="{StaticResource OmagCut_ButtonIcon}"/>
            </ToggleButton>

            <ToggleButton Name="Point2Btn" Grid.Column="1"
                          Style="{DynamicResource OmagCut_YellowIconToggleButton}">
               <Image Source="{DynamicResource Acquisisci-P2Img}" Style="{StaticResource OmagCut_ButtonIcon}"/>
            </ToggleButton>
         </Grid>

         <ComboBox Name="PointModeCmBx" Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource OmagCut_ComboBox}"
                   Margin="6,0,6,0">
            <ComboBox.ItemTemplate>
               <DataTemplate>
                  <TextBlock Text="{Binding}" Style="{DynamicResource OmagCut_LowerCaseCharacterTextBlock}"/>
               </DataTemplate>
            </ComboBox.ItemTemplate>
         </ComboBox>

         <TextBlock Name="DepthTxBl" Grid.Column="0" Grid.Row="2"
                    Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>
         <EgtWPFLib:EgtTextBox Name="DepthTxBx" Grid.Column="1" Grid.Row="2" Margin="0,0,6,0"
                               Style="{DynamicResource OmagCut_CalculatorTextBox}"/>

         <TextBlock Name="DirectionTxBl" Grid.Column="0" Grid.Row="3"
                    Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>
         <EgtWPFLib:EgtTextBox Name="DirectionTxBx" Grid.Column="1" Grid.Row="3" Margin="0,0,6,0" IsLength="False"
                               Style="{DynamicResource OmagCut_CalculatorTextBox}"/>

         <TextBlock Name="SideAngleTxBl" Grid.Column="0" Grid.Row="4"
                    Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>
         <EgtWPFLib:EgtTextBox Name="SideAngleTxBx" Grid.Column="1" Grid.Row="4" Margin="0,0,6,0" IsLength="False"
                               Style="{DynamicResource OmagCut_CalculatorTextBox}"/>

         <!-- STANDARD -->
         <Grid Name ="StandardGrid" Grid.Row="5" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1.5*"/>
               <ColumnDefinition Width="2"/>
               <ColumnDefinition Width="1.5*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
               <RowDefinition Height="0.5*"/>
               <RowDefinition Height="0.5*"/>
               <RowDefinition Height="0.5*"/>
               <RowDefinition Height="0.5*"/>
            </Grid.RowDefinitions>

            <Border Grid.Column="1" Grid.Row="0" Grid.RowSpan="4" Background="Black" />

            <TextBlock Name="NumPzXTxBl" Grid.Column="0" Grid.Row="0"
                       Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>
            <TextBlock Name="DimPzXTxBl" Grid.Column="2" Grid.Row="0"
                       Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>

            <EgtWPFLib:EgtTextBox Name="NumPzXTxBx" Grid.Column="0" Grid.Row="1" Width="75" IsLength="False"
                                  Style="{DynamicResource OmagCut_CalculatorTextBox}"/>
            <EgtWPFLib:EgtTextBox Name="DimPzXTxBx" Grid.Column="2" Grid.Row="1" Width="75"
                                  Style="{DynamicResource OmagCut_CalculatorTextBox}" />
   
            <TextBlock Name="NumPzYTxBl" Grid.Column="0" Grid.Row="2"
                       Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>
            <TextBlock Name="DimPzYTxBl" Grid.Column="2" Grid.Row="2"
                       Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>

            <EgtWPFLib:EgtTextBox Name="NumPzYTxBx" Grid.Column="0" Grid.Row="3" Width="75" IsLength="False"
                                  Style="{DynamicResource OmagCut_CalculatorTextBox}"/>
            <EgtWPFLib:EgtTextBox Name="DimPzYTxBx" Grid.Column="2" Grid.Row="3" Width="75"
                                  Style="{DynamicResource OmagCut_CalculatorTextBox}" />

         </Grid>

         <Button Name="CustomGridBtn" Grid.Row="5" Grid.ColumnSpan="2" Style="{DynamicResource OmagCut_YellowIconButton}" 
                 Margin="10,30,10,30">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="80"/>
                  <ColumnDefinition Width="140"/>
               </Grid.ColumnDefinitions>
               <Image Source="{DynamicResource Taglio-grigliaImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Grid.Column="0" Height="90" Width="90" />
               <TextBlock Name="GridCutTxt" Grid.Column="1"
                          HorizontalAlignment="Left"
                          Style="{DynamicResource OmagCut_LowerCaseCharacterTextBlock}"/>
            </Grid>
         </Button>

         <!-- SPECIALE -->
         <!--<Grid Name ="CustomGrid" Grid.Row="5" Grid.ColumnSpan="2">
            <Grid.RowDefinitions>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="2.5*"/>
            </Grid.RowDefinitions>

            <StackPanel Orientation="Horizontal" Grid.Row="0">
               <Button Name="AddCutBtn" Content="+" 
                       Style="{DynamicResource OmagCut_YellowTextButton}"
                       Width="35" Height="35" HorizontalAlignment="Left"/>
               <Button Name="RemoveCutBtn" Content="-" 
                       Style="{DynamicResource OmagCut_YellowTextButton}"
                       Width="35" Height="35" HorizontalAlignment="Left" Margin="2,0,0,0"/>
               <ToggleButton Name="Cut_XTgBtn" Content="X"
                             Style="{DynamicResource OmagCut_YellowToggleButton}"
                             Width="35" Height="35" HorizontalAlignment="Left" Margin="2,0,0,0"/>
               <ToggleButton Name="Cut_YTgBtn" Content="Y"
                             Style="{DynamicResource OmagCut_YellowToggleButton}"
                             Width="35" Height="35" HorizontalAlignment="Left" Margin="2,0,0,0"/>
               <Button Name="UpdateBtn" Content="Update" 
                       Style="{DynamicResource OmagCut_YellowTextButton}"
                       Width="85" Height="35" HorizontalAlignment="Left" Margin="2,0,0,0"/>
            </StackPanel>

            <ScrollViewer Background="Transparent" Grid.Row="1"
                          Margin="0,5,0,0"
                          VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden">
               <ListBox Name="CustomGridLstBx" ScrollViewer.CanContentScroll="False">
                  <ItemsControl.ItemsPanel>
                     <ItemsPanelTemplate>
                        <StackPanel Orientation="Vertical"/>
                     </ItemsPanelTemplate>
                  </ItemsControl.ItemsPanel>
                  <ItemsControl.ItemTemplate>
                     <DataTemplate>
                        <Grid Width="210">
                           <Grid.ColumnDefinitions>
                              <ColumnDefinition Width="5*"/>
                              <ColumnDefinition Width="1*"/>
                              <ColumnDefinition Width="5*"/>
                           </Grid.ColumnDefinitions>
                           <EgtWPFLib:EgtTextBox Text="{Binding sNumber}" Grid.Column="0"
                                                 Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                           <EgtWPFLib:EgtTextBox Text="{Binding sInteraxis}" Grid.Column="2"
                                                 Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                        </Grid>
                     </DataTemplate>
                  </ItemsControl.ItemTemplate>
               </ListBox>
            </ScrollViewer>
         </Grid>-->

         <TextBlock Name="SideTxBl" Grid.Row="6" Grid.ColumnSpan="2"
                    Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"/>
         <CheckBox Name="SideChBx" Grid.Row="6" Grid.ColumnSpan="2" Style="{DynamicResource OmagCut_CheckBox_Single}"
                   HorizontalAlignment="Right" Margin="0,0,6,0"/>

         <Grid Grid.Row="7" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="0.5*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="0.5*"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Name="XcoordTxBl" Grid.Column="0" Text="X"
                       Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
            <EgtWPFLib:EgtTextBox Name="XcoordTxBx" Grid.Column="1" Margin="0,0,6,0"
                                  Style="{DynamicResource OmagCut_CalculatorTextBox}"/>
            <TextBlock Name="YcoordTxBl" Grid.Column="2" Text="Y"
                       Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
            <EgtWPFLib:EgtTextBox Name="YcoordTxBx" Grid.Column="3" Margin="0,0,6,0"
                                  Style="{DynamicResource OmagCut_CalculatorTextBox}"/>
         </Grid>

         <Grid Grid.Row="11" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Button Name="SimulBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowIconButton}">
               <Image Source="{DynamicResource SimulaImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button Name="OkBtn" Grid.Column="1" Style="{DynamicResource OmagCut_YellowIconButton}">
               <Image Source="{DynamicResource EseguiImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button Name="ExitBtn" Grid.Column="2" Style="{DynamicResource OmagCut_YellowIconButton}">
               <Image Source="{DynamicResource XImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
         </Grid>

      </Grid>
   </Border>
</UserControl>
