<UserControl x:Class="SingleCutAuto"
   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 Style="{DynamicResource OmagCut_DirectCutPageBorder}">

        <!-- Definizione della Grid SingleCut -->
        <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="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>

                <!--Acquisici punto 1-->
                <ToggleButton Name="Point1Btn" Grid.Column="0"
                              Style="{DynamicResource OmagCut_YellowToggleButton}"/>
                <!--Acquisici punto 2-->
                <ToggleButton Name="Point2Btn" Grid.Column="1"
                              Style="{DynamicResource OmagCut_YellowToggleButton}"/>

            </Grid>

            <!--Definsco il tip odi acquisizione punti-->
            <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>

            <!--Diametro lama-->
            <TextBlock Name="DiamLamaTxBl" Grid.Column="0" Grid.Row="2"
            Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
            <EgtWPFLib:EgtTextBox Name="DiamLamaTxBx" Grid.Column="1" Grid.Row="2" Margin="6,0,6,0"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

            <!--Spessore Lama-->
            <TextBlock Name="ThickLamaTxBl" Grid.Column="0" Grid.Row="3"
            Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
            <EgtWPFLib:EgtTextBox Name="ThickLamaTxBx" Grid.Column="1" Grid.Row="3" Margin="6,0,6,0"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

            <!--Tipo di materiale-->
            <ComboBox Name="MaterailCmBx" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="4" Style="{StaticResource OmagCut_ComboBox}" Margin="6,0,6,0">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Path=Name}" Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>

            <!--Spessore materiale-->
            <TextBlock Name="ThickMatTxBl" Grid.Column="0" Grid.Row="5"
            Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"/>
            <EgtWPFLib:EgtTextBox Name="ThickMatTxBx" Grid.Column="1" Grid.Row="5" Margin="6,0,6,0"
            Style="{StaticResource OmagCut_CalculatorTextBox}"/>

            <Grid Grid.Row="9" 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="6,0,6,0"
               Style="{StaticResource OmagCut_CalculatorTextBox}"/>
            </Grid>

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

                <!--Simulazione-->
                <Button Name="SimulBtn" Grid.Column="0" Style="{DynamicResource OmagCut_GradientBlueTextButton}"/>
                <!--Esegui-->
                <Button Name="OkBtn" Grid.Column="1" Style="{DynamicResource OmagCut_GradientBlueTextButton}"/>
                <!--Esci-->
                <Button Name="ExitBtn" Grid.Column="2" Style="{DynamicResource OmagCut_YellowIconButton}">
                    <Image Source="{DynamicResource XImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
                </Button>
            </Grid>

        </Grid>

    </Border>

</UserControl>
