<UserControl x:Class="MultipleCut"
   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="{DynamicResource 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="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="{StaticResource OmagCut_ComboBox}"
            Margin="6,0,6,0">
            <ComboBox.ItemTemplate>
               <DataTemplate>
                  <TextBlock Text="{Binding}" Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
               </DataTemplate>
            </ComboBox.ItemTemplate>
         </ComboBox>

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

         <TextBlock Name="LenghtTxBl" Grid.Column="0" Grid.Row="3"
            Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
         <EgtWPFLib:EgtTextBox Name="LenghtTxBx" Grid.Column="1" Grid.Row="3" Margin="0,0,6,0"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

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

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

         <Grid Grid.Row="6" Grid.ColumnSpan="2" Visibility="Visible">
             <Grid.ColumnDefinitions>
                 <ColumnDefinition Width="0.5*"/>
                 <ColumnDefinition Width="1"/>
                 <ColumnDefinition Width="1.5*"/>
                 <ColumnDefinition Width="1"/>
                 <ColumnDefinition Width="1.5*"/>
                 <ColumnDefinition Width="0.2*"/>
             </Grid.ColumnDefinitions>
             <Grid.RowDefinitions>
                 <RowDefinition Height="0.5*"/>
                 <RowDefinition Height="2*"/>
             </Grid.RowDefinitions>

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

             <TextBlock Name="NumPzTxBl" Grid.Column="2" Grid.Row="0"
             Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
             <TextBlock Name="DimPzTxBl" Grid.Column="4" Grid.Row="0"
             Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>

                <Border Grid.Column="3" Grid.Row="0" Grid.RowSpan="10" Background="Black" />

                <ScrollViewer VerticalScrollBarVisibility="Visible" Grid.Row="6" Grid.ColumnSpan="6" Visibility="Visible">
                 <Grid>
                     <Grid.ColumnDefinitions>
                         <ColumnDefinition Width="0.5*"/>
                         <ColumnDefinition Width="1.5*"/>
                         <ColumnDefinition Width="2"/>
                         <ColumnDefinition Width="1.5*"/>
                     </Grid.ColumnDefinitions>
                     <Grid.RowDefinitions>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                         <RowDefinition Height="35"/>
                     </Grid.RowDefinitions>

                     <Border Grid.Column="2" Grid.Row="0" Grid.RowSpan="10" Background="Black" Visibility="Hidden"/>

                     <TextBlock Name="Num1TxBl" Grid.Column="0" Grid.Row="0"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz1TxBx" Grid.Column="1" Grid.Row="0" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz1TxBx" Grid.Column="3" Grid.Row="0" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num2TxBl" Grid.Column="0" Grid.Row="1"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz2TxBx" Grid.Column="1" Grid.Row="1" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz2TxBx" Grid.Column="3" Grid.Row="1" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num3TxBl" Grid.Column="0" Grid.Row="2"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz3TxBx" Grid.Column="1" Grid.Row="2" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz3TxBx" Grid.Column="3" Grid.Row="2" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num4TxBl" Grid.Column="0" Grid.Row="3"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                     <EgtWPFLib:EgtTextBox Name="NumPz4TxBx" Grid.Column="1" Grid.Row="3" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz4TxBx" Grid.Column="3" Grid.Row="3" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num5TxBl" Grid.Column="0" Grid.Row="4"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz5TxBx" Grid.Column="1" Grid.Row="4" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz5TxBx" Grid.Column="3" Grid.Row="4" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num6TxBl" Grid.Column="0" Grid.Row="5"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz6TxBx" Grid.Column="1" Grid.Row="5" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz6TxBx" Grid.Column="3" Grid.Row="5" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num7TxBl" Grid.Column="0" Grid.Row="6"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz7TxBx" Grid.Column="1" Grid.Row="6" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz7TxBx" Grid.Column="3" Grid.Row="6" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num8TxBl" Grid.Column="0" Grid.Row="7"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz8TxBx" Grid.Column="1" Grid.Row="7" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz8TxBx" Grid.Column="3" Grid.Row="7" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num9TxBl" Grid.Column="0" Grid.Row="8"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz9TxBx" Grid.Column="1" Grid.Row="8" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz9TxBx" Grid.Column="3" Grid.Row="8" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>

                     <TextBlock Name="Num10TxBl" Grid.Column="0" Grid.Row="9"
                     Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
                  <EgtWPFLib:EgtTextBox Name="NumPz10TxBx" Grid.Column="1" Grid.Row="9" Width="75" IsLength="False"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                     <EgtWPFLib:EgtTextBox Name="DimPz10TxBx" Grid.Column="3" Grid.Row="9" Width="75"
                     Style="{StaticResource OmagCut_CalculatorTextBox}"/>
                 </Grid>
             </ScrollViewer>
         </Grid>

         <!--<Grid Grid.Row="6" Grid.ColumnSpan="2" Visibility="Visible">
            <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="NumPzTxBl" Grid.Column="0" Grid.Row="0"
            Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
            <TextBlock Name="DimPzTxBl" Grid.Column="2" Grid.Row="0"
            Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>

            <EgtWPFLib:EgtTextBox Name="NumPz1TxBx" Grid.Column="0" Grid.Row="1" Width="75"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>
            <EgtWPFLib:EgtTextBox Name="DimPz1TxBx" Grid.Column="2" Grid.Row="1" Width="75"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

            <EgtWPFLib:EgtTextBox Name="NumPz2TxBx" Grid.Column="0" Grid.Row="2" Width="75"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>
            <EgtWPFLib:EgtTextBox Name="DimPz2TxBx" Grid.Column="2" Grid.Row="2" Width="75"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

            <EgtWPFLib:EgtTextBox Name="NumPz3TxBx" Grid.Column="0" Grid.Row="3" Width="75"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>
            <EgtWPFLib:EgtTextBox Name="DimPz3TxBx" Grid.Column="2" Grid.Row="3" Width="75"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

         </Grid>-->

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

         <Grid Grid.Row="8" 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="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
            <EgtWPFLib:EgtTextBox Name="XcoordTxBx" Grid.Column="1" Margin="0,0,6,0"
               Style="{StaticResource OmagCut_CalculatorTextBox}"/>
            <TextBlock Name="YcoordTxBl" Grid.Column="2" Text="Y"
               Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}" HorizontalAlignment="Center"/>
            <EgtWPFLib:EgtTextBox Name="YcoordTxBx" Grid.Column="3" Margin="0,0,6,0"
               Style="{StaticResource OmagCut_CalculatorTextBox}"/>
         </Grid>

         <Grid Grid.Row="9" 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="{StaticResource OmagCut_ButtonIcon}"/>
                </Button>
                <Button Name="OkBtn" Grid.Column="1" Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Image Source="{DynamicResource EseguiImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
                </Button>
                <Button Name="ExitBtn" Grid.Column="2" Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Image Source="{DynamicResource XImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
                </Button>
            </Grid>

      </Grid>

   </Border>

</UserControl>
