<UserControl x:Class="FlatteningCut"
   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 FlatteningCut -->
      <Grid Name="FlatteningCutGrid" >
         <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="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <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="DirectionTxBl" Grid.Column="0" Grid.Row="3"
            Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
         <EgtWPFLib:EgtTextBox Name="DirectionTxBx" Grid.Column="1" Grid.Row="3" Margin="0,0,6,0"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

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

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

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

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

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

         <ComboBox Name="TypeCmBx" Grid.Row="9" 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="RotLockTxBl" Grid.Row="10" Grid.ColumnSpan="2"
             Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
         <CheckBox Name="RotLockChBx" Grid.Row="10" Grid.ColumnSpan="2" Style="{StaticResource OmagCut_CheckBox_Single}"
             HorizontalAlignment="Right" Margin="0,0,6,0"/>

         <Grid Grid.Row="11" 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="12" 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>
