<UserControl x:Class="MoveRawPartPage"
   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:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"
   xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
   mc:Ignorable="d" 
   d:DesignHeight="853.3" d:DesignWidth="1280">

   <!-- Definizione della SplitPage -->
   <Grid Name="SplitPageGrid" >
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="3*"/>
         <ColumnDefinition Width="12*"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
         <RowDefinition Height="1*"/>
         <RowDefinition Height="8*"/>
         <RowDefinition Height="1*"/>
      </Grid.RowDefinitions>

      <!--Upper button grid-->
      <Grid Grid.Column="1">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="8*"/>
         </Grid.ColumnDefinitions>

         <!--Griglia per oscurare i bottoni della pagina sottostante-->
         <Grid Background="{DynamicResource OmagCut_Gray}">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Button Name="PrevBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowIconButton}">
               <Image Source="{DynamicResource NumericKeyboardArrowImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button Name="NextBtn" Grid.Column="1" Style="{DynamicResource OmagCut_YellowIconButton}">
               <Image Source="{DynamicResource NumericKeyboardArrowImg}" Style="{StaticResource OmagCut_ButtonIcon}" RenderTransformOrigin="0.5,0.5">
                  <Image.RenderTransform>
                     <TransformGroup>
                        <RotateTransform Angle="180"/>
                     </TransformGroup>
                  </Image.RenderTransform>
               </Image>
            </Button>
            <Button Name="ModifyBtn" Grid.Column="2" Style="{DynamicResource OmagCut_YellowTextButton}"/>

         </Grid>
      </Grid>

      <!--Left Button Grid-->
      <Grid Grid.RowSpan="3">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
         </Grid.RowDefinitions>

         <Button Name="TopLBtn" Grid.Column="0" Grid.Row="1"
         Style="{DynamicResource OmagCut_TopGrayGradientYellowButton}">
            <Image Source="{DynamicResource TopLeftImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>
         <Button Name="UpBtn" Grid.Column="1" Grid.Row="1"
         Style="{DynamicResource OmagCut_TopGrayGradientYellowButton}">
            <Image Source="{DynamicResource UpArrowImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>
         <Button Name="TopRBtn" Grid.Column="2" Grid.Row="1"
         Style="{DynamicResource OmagCut_TopGrayGradientYellowButton}">
            <Image Source="{DynamicResource TopRightImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>
         <Button Name="LeftBtn" Grid.Column="0" Grid.Row="2"
         Style="{DynamicResource OmagCut_LeftGrayGradientYellowButton}">
            <Image Source="{DynamicResource LeftArrowImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>
         <EgtWPFLib:EgtTextBox Name="StepMoveTxBx" Grid.Column="1" Grid.Row="2" Width="50"
            Style="{DynamicResource OmagCut_CalculatorTextBox}"/>
         <Button Name="ResetBtn" Grid.Column="1" Grid.Row="2"
            Style="{DynamicResource OmagCut_YellowTextButton}">
         </Button>
         <Button Name="RightBtn" Grid.Column="2" Grid.Row="2"
         Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
            <Image Source="{DynamicResource RightArrowImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>
         <Button Name="BottomLBtn" Grid.Column="0" Grid.Row="3"
         Style="{DynamicResource OmagCut_BottomGrayGradientYellowButton}">
            <Image Source="{DynamicResource BottomLeftImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>
         <Button Name="DownBtn" Grid.Column="1" Grid.Row="3"
         Style="{DynamicResource OmagCut_BottomGrayGradientYellowButton}">
            <Image Source="{DynamicResource DownArrowImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>
         <Button Name="BottomRBtn" Grid.Column="2" Grid.Row="3"
         Style="{DynamicResource OmagCut_BottomGrayGradientYellowButton}">
            <Image Source="{DynamicResource BottomRightImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
         </Button>

         <Button Name="RotateCounterClockwiseBtn" Grid.Column="0" Grid.Row="4"
            Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
                <Image Source="{DynamicResource CounterClockwiseRotateImg}" Width="64" Height="65" HorizontalAlignment="Center"
               VerticalAlignment="Center" />
         </Button>

         <Grid Name="RotationAngle" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="Auto"/>
               <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <EgtWPFLib:EgtTextBox Name="RotationAngleTxBx"  Width="50"
            Style="{DynamicResource OmagCut_CalculatorTextBox}"/>
            <TextBlock Grid.Column="1" FontSize="30" Margin="2,-5,0,0"
            Text="°"/>
         </Grid>

         <Button Name="RotateClockwiseBtn" Grid.Column="2" Grid.Row="4"
            Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
            <Image Source="{DynamicResource ClockwiseRotateImg}" Width="65" Height="65" HorizontalAlignment="Center"
               VerticalAlignment="Center" />
         </Button>


         <Button Name="RemovePartBtn" Grid.ColumnSpan="3" Grid.Row="6"
         Style="{DynamicResource OmagCut_YellowTextButton}"/>

         <Grid Grid.Row="7" Grid.ColumnSpan="3">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="0.5*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="0.5*"/>
            </Grid.ColumnDefinitions>

         </Grid>

      </Grid>

      <!--Lower button grid, sfondo grigio per coprire i bottoni della pagina sottostante-->
      <Grid Grid.Column="1" Grid.Row="2" Background="{DynamicResource OmagCut_Gray}">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="10*"/>
         </Grid.ColumnDefinitions>


      </Grid>

   </Grid>

</UserControl>
