<UserControl x:Class="DrawPageUC"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"
   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" Initialized="DrawPage_Initialized" Loaded="DrawPage_Loaded" Unloaded="DrawPage_Unloaded">

   <!-- Definizione della DrawPage -->
   <Border >
      <Grid Name="DrawPageGrd" >
         <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 per Button -->
         <Grid Name="UpperButtonGrid" Grid.Column="1" Grid.Row="0" >
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>

            <ToggleButton Name="SideAngleBtn" Grid.Column="0"
               Style="{DynamicResource OmagCut_RightGrayYellowTextToggleButton}"/>
            <ToggleButton Name="FiloTopBtn" Grid.Column="1"
               Style="{DynamicResource OmagCut_RightGrayYellowTextToggleButton}"/>
            <ToggleButton Name="EngraveBtn" Grid.Column="2"
               Style="{DynamicResource OmagCut_RightGrayYellowTextToggleButton}"/>
            <ToggleButton Name="DripCutBtn" Grid.Column="3" Padding="0"
               Style="{DynamicResource OmagCut_RightGrayYellowTextToggleButton}"/>

         </Grid>

         <!-- Definizione della Grid Laterale -->
         <Grid Name="LeftButtonGrd"  Grid.RowSpan="2">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1.5*"/>
               <ColumnDefinition Width="1.5*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="7*"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>

            <Grid Grid.ColumnSpan="2">
               <Grid.ColumnDefinitions>
                  <!--<ColumnDefinition Width="1*"/>-->
                  <ColumnDefinition Width="1*"/>
                  <ColumnDefinition Width="1*"/>
               </Grid.ColumnDefinitions>
               <ToggleButton Name="DimensionBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowToggleButton}" Visibility="Collapsed"/>
            </Grid>

            <Grid Name="VariablesGrd" Grid.Row="1" Grid.ColumnSpan="2"/>
            
            <Grid Name="MessageGrid" Grid.Row="2" Grid.ColumnSpan="2">
               <TextBlock Name="MessageTxBl" Style="{StaticResource OmagCut_CenteredLowerCaseCharacterTextBlock}"/>
            </Grid>

            <Button Name="BackBtn" Grid.Column="1" Grid.Row="14"
               Style="{DynamicResource OmagCut_YellowIconButton}">
               <Image Source="{DynamicResource NumericKeyboardArrowImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
            </Button>
            
         </Grid>

         <Border Name="MessageBrd" Grid.Row="4" BorderThickness="0,1,0,0" BorderBrush="Gray">
            <TextBlock Name="MessageTxBx" TextAlignment="Center"
                   Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"/>
         </Border>

         <!-- Definizione della Grid Inferiore per i Button V e X -->
         <Grid Name="LowerButtonsGrid" Grid.Column="1" Grid.Row="3">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="3*"/>
               <ColumnDefinition Width="4*"/>
               <ColumnDefinition Width="3*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Grid Name="TopGrd">

               <TextBlock Name="TopTxBl"
                  Style="{StaticResource OmagCut_ToolsDBTextBlock}" />
               <CheckBox Name="TopChBx" Style="{StaticResource OmagCut_CheckBox}"
                  HorizontalAlignment="Right" Margin="6,0,6,0"/>

            </Grid>

            <Grid Name="PartNameGrd" Grid.Column="1">
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
               </Grid.ColumnDefinitions>

               <TextBlock Name="PartNameTxBl" Grid.Column="0" Style="{DynamicResource OmagCut_CurrProjSummeryTextBlock}"
               TextAlignment="Right"/>
               <EgtWPFLib:EgtTextBox Name="PartNameTxBx" Grid.Column="1" Width="130"
               Style="{StaticResource OmagCut_KeyboardTextBox}"/>
               <Button Name="TrfDataBtn" Grid.Column="1" 
               Style="{DynamicResource OmagCut_YellowTextButton}"/>

            </Grid>

            <Grid Name="PartNumberGrd" Grid.Column="2">
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="1*"/>
               </Grid.ColumnDefinitions>

            <TextBlock Name="PartNumTxBl" Grid.Column="0" Style="{StaticResource OmagCut_CurrProjSummeryTextBlock}"
               TextAlignment="Right"/>
            <EgtWPFLib:EgtTextBox Name="PartNumTxBx" Grid.Column="1" Width="60"
               Style="{DynamicResource OmagCut_CalculatorTextBox}"/>

            </Grid>

            <Button Name="OkBtn" Grid.Column="3" Style="{DynamicResource OmagCut_GradientBlueIconButton}">
               <Image Source="{DynamicResource VImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button Name="ExitBtn" Grid.Column="4" Style="{DynamicResource OmagCut_GradientBlueIconButton}">
               <Image Source="{DynamicResource XImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
            </Button>
            
         </Grid>
         
      </Grid>
      
   </Border>

</UserControl>
