<UserControl x:Class="SetUpPage"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:self="clr-namespace:OmagCUT.TreeViewItem"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
   xmlns:OmagCUT="clr-namespace:OmagCUT" 
   mc:Ignorable="d" 
   d:DesignHeight="768" d:DesignWidth="1280">
   
   <!-- Definizione della SetUpPage -->
   <Grid x:Name="SetUpPageGrid" >
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="3*"/>
         <ColumnDefinition Width="12*"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
         <RowDefinition Height="8*"/>
         <RowDefinition Height="1*"/>
      </Grid.RowDefinitions>

      <TreeView Name="ToolTree">
         <TreeView.Resources>
            <!--Modifico HierarchicalDataTemplate del CathegoryItem per poter inserire immagine e testo e per -->
            <!--renderlo apribile con un solo click -->
            <HierarchicalDataTemplate DataType="{x:Type self:CathegoryItem}" ItemsSource="{Binding Items}">

               <Grid >
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="Auto"/>
                     <ColumnDefinition Width="1*"/>
                  </Grid.ColumnDefinitions>

                  <Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0,8,6,4" />
                  <TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="10" />

               </Grid>

               <!--Assegna ai nodi ToolItem lo Style normale dei TreeViewItem, eliminando l'ombra, data dal -->
               <!-- multibinding quando sono attivi.-->
               <HierarchicalDataTemplate.ItemContainerStyle>
                  <Style TargetType="{x:Type TreeViewItem}" >
                     <Setter Property="IsSelected" Value="{Binding IsSelected}" />
                     <Setter Property="IsExpanded" Value="{Binding IsExpanded}" />
                     <Setter Property="Template">
                        <Setter.Value>
                           <ControlTemplate TargetType="{x:Type TreeViewItem}">
                              <Grid>
                                 <Grid.ColumnDefinitions>
                                    <ColumnDefinition MinWidth="19" Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                 </Grid.ColumnDefinitions>
                                 <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition/>
                                 </Grid.RowDefinitions>
                                 <ToggleButton x:Name="Expander" ClickMode="Press" IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ExpandCollapseToggleStyle}"/>
                                 <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Column="1" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                                    <ContentPresenter x:Name="PART_Header" ContentSource="Header" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                 </Border>
                                 <ItemsPresenter x:Name="ItemsHost" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="1"/>
                              </Grid>
                              <ControlTemplate.Triggers>
                                 <Trigger Property="IsExpanded" Value="false">
                                    <Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
                                 </Trigger>
                                 <Trigger Property="HasItems" Value="false">
                                    <Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
                                 </Trigger>
                                 <Trigger Property="IsSelected" Value="true">
                                    <Setter Property="Background" TargetName="Bd" Value="Transparent"/>
                                    <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
                                    <Setter Property="BorderThickness" TargetName="Bd" Value="1"/>
                                    <!--<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>-->
                                 </Trigger>
                                 <!--<MultiTrigger>
                                       <MultiTrigger.Conditions>
                                          <Condition Property="IsSelected" Value="true"/>
                                          <Condition Property="IsSelectionActive" Value="false"/>
                                       </MultiTrigger.Conditions>
                                       <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                                       <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                                    </MultiTrigger>-->
                                 <Trigger Property="IsEnabled" Value="false">
                                    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                                 </Trigger>
                              </ControlTemplate.Triggers>
                           </ControlTemplate>
                        </Setter.Value>
                     </Setter>
                  </Style>
               </HierarchicalDataTemplate.ItemContainerStyle>
            </HierarchicalDataTemplate>
            <!--Modifico DataTemplate del ToolItem per poter inserire immagine e testo-->
            <DataTemplate DataType="{x:Type self:CustomItem}">
               <Grid >
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="Auto"/>
                     <ColumnDefinition Width="1*"/>
                  </Grid.ColumnDefinitions>

                  <!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
                  <TextBlock Grid.Column="1" Text="{Binding Name}" Height="18" FontSize="15"  Margin="10"/>

               </Grid>
            </DataTemplate>
         </TreeView.Resources>

         <!--Style dei nodi CathegoryItem che li riquadra di azzurro quando clicckati ed elimina l'ombra grigia -->
         <!--che si presenta quando la categoria rimane vuota (ombra causata dal multibinding). -->
         <TreeView.ItemContainerStyle>
            <Style TargetType="{x:Type TreeViewItem}">
               <Setter Property="IsSelected" Value="{Binding IsSelected}" />
               <Setter Property="IsExpanded" Value="{Binding IsExpanded}" />
               <Setter Property="Template">
                  <Setter.Value>
                     <ControlTemplate TargetType="{x:Type TreeViewItem}">
                        <Grid>
                           <Grid.ColumnDefinitions>
                              <ColumnDefinition MinWidth="19" Width="Auto"/>
                              <ColumnDefinition Width="Auto"/>
                              <ColumnDefinition Width="*"/>
                           </Grid.ColumnDefinitions>
                           <Grid.RowDefinitions>
                              <RowDefinition Height="Auto"/>
                              <RowDefinition/>
                           </Grid.RowDefinitions>
                           <Border x:Name="ExpanderBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                              <ToggleButton x:Name="Expander" ClickMode="Press" IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ExpandCollapseToggleStyle}"/>
                           </Border>
                           <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Column="1" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                              <ContentPresenter x:Name="PART_Header" ContentSource="Header" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                           </Border>
                           <ItemsPresenter x:Name="ItemsHost" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="1"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                           <Trigger Property="IsExpanded" Value="false">
                              <Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
                           </Trigger>
                           <Trigger Property="HasItems" Value="false">
                              <Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
                           </Trigger>
                           <Trigger Property="IsSelected" Value="true">
                              <Setter Property="Background" TargetName="Bd" Value="Transparent"/>
                              <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
                              <Setter Property="BorderThickness" TargetName="Bd" Value="0,1,1,1"/>
                              <Setter Property="Background" TargetName="ExpanderBorder" Value="Transparent"/>
                              <Setter Property="BorderBrush" TargetName="ExpanderBorder" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
                              <Setter Property="BorderThickness" TargetName="ExpanderBorder" Value="1,1,0,1"/>
                              <!--<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>-->
                           </Trigger>
                           <!--<MultiTrigger>
                                 <MultiTrigger.Conditions>
                                    <Condition Property="IsSelected" Value="true"/>
                                    <Condition Property="IsSelectionActive" Value="false"/>
                                 </MultiTrigger.Conditions>
                                 <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                                 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                              </MultiTrigger>-->
                           <Trigger Property="IsEnabled" Value="false">
                              <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                           </Trigger>
                        </ControlTemplate.Triggers>
                     </ControlTemplate>
                  </Setter.Value>
               </Setter>
            </Style>
         </TreeView.ItemContainerStyle>

      </TreeView>

      <ScrollViewer Name="TlChScVw" Background="{StaticResource OmagCut_LightGray}" Grid.Column="1" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" Visibility="Hidden">

         <Grid x:Name="TlChGrid" Grid.Column="1">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
            </Grid.RowDefinitions>

            <OmagCUT:ToolChangerPosUC x:Name="TlChPos1" Grid.Column="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos2" Grid.Column="1" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos3" Grid.Column="1" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos4" Grid.Column="1" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos5" Grid.Column="1" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos6" Grid.Column="3"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos7" Grid.Column="3" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos8" Grid.Column="3" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos9" Grid.Column="3" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos10" Grid.Column="3" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos11" Grid.Column="5"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos12" Grid.Column="5" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos13" Grid.Column="5" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos14" Grid.Column="5" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos15" Grid.Column="5" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos16" Grid.Column="7"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos17" Grid.Column="7" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos18" Grid.Column="7" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos19" Grid.Column="7" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos20" Grid.Column="7" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos21" Grid.Column="9"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos22" Grid.Column="9" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos23" Grid.Column="9" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos24" Grid.Column="9" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos25" Grid.Column="9" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos26" Grid.Column="11"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos27" Grid.Column="11" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos28" Grid.Column="11" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos29" Grid.Column="11" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos30" Grid.Column="11" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos31" Grid.Column="13"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos32" Grid.Column="13" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos33" Grid.Column="13" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos34" Grid.Column="13" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos35" Grid.Column="13" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos36" Grid.Column="15" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos37" Grid.Column="15" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos38" Grid.Column="15" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos39" Grid.Column="15" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos40" Grid.Column="15" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos41" Grid.Column="17" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos42" Grid.Column="17" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos43" Grid.Column="17" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos44" Grid.Column="17" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos45" Grid.Column="17" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos46" Grid.Column="19" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos47" Grid.Column="19" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos48" Grid.Column="19" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos49" Grid.Column="19" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos50" Grid.Column="19" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos51" Grid.Column="21" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos52" Grid.Column="21" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos53" Grid.Column="21" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos54" Grid.Column="21" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos55" Grid.Column="21" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos56" Grid.Column="23" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos57" Grid.Column="23" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos58" Grid.Column="23" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos59" Grid.Column="23" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="TlChPos60" Grid.Column="23" Grid.Row="4"/>
            <TextBox Name="TxBx1" IsReadOnly="True" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx2" IsReadOnly="True" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx3" IsReadOnly="True" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx4" IsReadOnly="True" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx5" IsReadOnly="True" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx6" IsReadOnly="True" Grid.Column="2" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx7" IsReadOnly="True" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx8" IsReadOnly="True" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx9" IsReadOnly="True" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx10" IsReadOnly="True" Grid.Column="2" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx11" IsReadOnly="True" Grid.Column="4" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx12" IsReadOnly="True" Grid.Column="4" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx13" IsReadOnly="True" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx14" IsReadOnly="True" Grid.Column="4" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx15" IsReadOnly="True" Grid.Column="4" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx16" IsReadOnly="True" Grid.Column="6" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx17" IsReadOnly="True" Grid.Column="6" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx18" IsReadOnly="True" Grid.Column="6" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx19" IsReadOnly="True" Grid.Column="6" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx20" IsReadOnly="True" Grid.Column="6" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx21" IsReadOnly="True" Grid.Column="8" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx22" IsReadOnly="True" Grid.Column="8" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx23" IsReadOnly="True" Grid.Column="8" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx24" IsReadOnly="True" Grid.Column="8" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx25" IsReadOnly="True" Grid.Column="8" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx26" IsReadOnly="True" Grid.Column="10" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx27" IsReadOnly="True" Grid.Column="10" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx28" IsReadOnly="True" Grid.Column="10" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx29" IsReadOnly="True" Grid.Column="10" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx30" IsReadOnly="True" Grid.Column="10" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx31" IsReadOnly="True" Grid.Column="12" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx32" IsReadOnly="True" Grid.Column="12" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx33" IsReadOnly="True" Grid.Column="12" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx34" IsReadOnly="True" Grid.Column="12" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx35" IsReadOnly="True" Grid.Column="12" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx36" IsReadOnly="True" Grid.Column="14" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx37" IsReadOnly="True" Grid.Column="14" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx38" IsReadOnly="True" Grid.Column="14" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx39" IsReadOnly="True" Grid.Column="14" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx40" IsReadOnly="True" Grid.Column="14" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx41" IsReadOnly="True" Grid.Column="16" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx42" IsReadOnly="True" Grid.Column="16" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx43" IsReadOnly="True" Grid.Column="16" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx44" IsReadOnly="True" Grid.Column="16" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx45" IsReadOnly="True" Grid.Column="16" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx46" IsReadOnly="True" Grid.Column="18" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx47" IsReadOnly="True" Grid.Column="18" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx48" IsReadOnly="True" Grid.Column="18" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx49" IsReadOnly="True" Grid.Column="18" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx50" IsReadOnly="True" Grid.Column="18" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx51" IsReadOnly="True" Grid.Column="20" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx52" IsReadOnly="True" Grid.Column="20" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx53" IsReadOnly="True" Grid.Column="20" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx54" IsReadOnly="True" Grid.Column="20" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx55" IsReadOnly="True" Grid.Column="20" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx56" IsReadOnly="True" Grid.Column="22" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx57" IsReadOnly="True" Grid.Column="22" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx58" IsReadOnly="True" Grid.Column="22" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx59" IsReadOnly="True" Grid.Column="22" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="TxBx60" IsReadOnly="True" Grid.Column="22" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
         </Grid>

      </ScrollViewer>

      <ScrollViewer Name="ManTlChScVw" Background="{StaticResource OmagCut_LightGray}" Grid.Column="1" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" Visibility="Hidden">

         <Grid x:Name="ManTlChGrid" Grid.Column="1">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
               <ColumnDefinition Width="1.6*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
               <RowDefinition Height="1.6*"/>
            </Grid.RowDefinitions>

            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos1" Grid.Column="1" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos2" Grid.Column="1" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos3" Grid.Column="1" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos4" Grid.Column="1" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos5" Grid.Column="1" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos6" Grid.Column="3" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos7" Grid.Column="3" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos8" Grid.Column="3" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos9" Grid.Column="3" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos10" Grid.Column="3" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos11" Grid.Column="5" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos12" Grid.Column="5" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos13" Grid.Column="5" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos14" Grid.Column="5" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos15" Grid.Column="5" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos16" Grid.Column="7" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos17" Grid.Column="7" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos18" Grid.Column="7" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos19" Grid.Column="7" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos20" Grid.Column="7" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos21" Grid.Column="9" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos22" Grid.Column="9" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos23" Grid.Column="9" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos24" Grid.Column="9" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos25" Grid.Column="9" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos26" Grid.Column="11" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos27" Grid.Column="11" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos28" Grid.Column="11" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos29" Grid.Column="11" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos30" Grid.Column="11" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos31" Grid.Column="13" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos32" Grid.Column="13" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos33" Grid.Column="13" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos34" Grid.Column="13" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos35" Grid.Column="13" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos36" Grid.Column="15" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos37" Grid.Column="15" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos38" Grid.Column="15" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos39" Grid.Column="15" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos40" Grid.Column="15" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos41" Grid.Column="17" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos42" Grid.Column="17" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos43" Grid.Column="17" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos44" Grid.Column="17" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos45" Grid.Column="17" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos46" Grid.Column="19" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos47" Grid.Column="19" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos48" Grid.Column="19" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos49" Grid.Column="19" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos50" Grid.Column="19" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos51" Grid.Column="21" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos52" Grid.Column="21" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos53" Grid.Column="21" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos54" Grid.Column="21" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos55" Grid.Column="21" Grid.Row="4"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos56" Grid.Column="23" Grid.Row="0"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos57" Grid.Column="23" Grid.Row="1"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos58" Grid.Column="23" Grid.Row="2"/>
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos59" Grid.Column="23" Grid.Row="3" />
            <OmagCUT:ToolChangerPosUC x:Name="ManTlChPos60" Grid.Column="23" Grid.Row="4"/>
            <TextBox Name="ManTxBx1" IsReadOnly="True" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx2" IsReadOnly="True" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx3" IsReadOnly="True" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx4" IsReadOnly="True" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx5" IsReadOnly="True" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx6" IsReadOnly="True" Grid.Column="2" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx7" IsReadOnly="True" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx8" IsReadOnly="True" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx9" IsReadOnly="True" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx10" IsReadOnly="True" Grid.Column="2" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx11" IsReadOnly="True" Grid.Column="4" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx12" IsReadOnly="True" Grid.Column="4" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx13" IsReadOnly="True" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx14" IsReadOnly="True" Grid.Column="4" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx15" IsReadOnly="True" Grid.Column="4" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx16" IsReadOnly="True" Grid.Column="6" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx17" IsReadOnly="True" Grid.Column="6" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx18" IsReadOnly="True" Grid.Column="6" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx19" IsReadOnly="True" Grid.Column="6" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx20" IsReadOnly="True" Grid.Column="6" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx21" IsReadOnly="True" Grid.Column="8" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx22" IsReadOnly="True" Grid.Column="8" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx23" IsReadOnly="True" Grid.Column="8" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx24" IsReadOnly="True" Grid.Column="8" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx25" IsReadOnly="True" Grid.Column="8" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx26" IsReadOnly="True" Grid.Column="10" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx27" IsReadOnly="True" Grid.Column="10" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx28" IsReadOnly="True" Grid.Column="10" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx29" IsReadOnly="True" Grid.Column="10" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx30" IsReadOnly="True" Grid.Column="10" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx31" IsReadOnly="True" Grid.Column="12" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx32" IsReadOnly="True" Grid.Column="12" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx33" IsReadOnly="True" Grid.Column="12" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx34" IsReadOnly="True" Grid.Column="12" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx35" IsReadOnly="True" Grid.Column="12" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx36" IsReadOnly="True" Grid.Column="14" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx37" IsReadOnly="True" Grid.Column="14" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx38" IsReadOnly="True" Grid.Column="14" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx39" IsReadOnly="True" Grid.Column="14" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx40" IsReadOnly="True" Grid.Column="14" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx41" IsReadOnly="True" Grid.Column="16" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx42" IsReadOnly="True" Grid.Column="16" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx43" IsReadOnly="True" Grid.Column="16" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx44" IsReadOnly="True" Grid.Column="16" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx45" IsReadOnly="True" Grid.Column="16" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx46" IsReadOnly="True" Grid.Column="18" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx47" IsReadOnly="True" Grid.Column="18" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx48" IsReadOnly="True" Grid.Column="18" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx49" IsReadOnly="True" Grid.Column="18" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx50" IsReadOnly="True" Grid.Column="18" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx51" IsReadOnly="True" Grid.Column="20" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx52" IsReadOnly="True" Grid.Column="20" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx53" IsReadOnly="True" Grid.Column="20" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx54" IsReadOnly="True" Grid.Column="20" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx55" IsReadOnly="True" Grid.Column="20" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx56" IsReadOnly="True" Grid.Column="22" Grid.Row="0" HorizontalAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx57" IsReadOnly="True" Grid.Column="22" Grid.Row="1" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx58" IsReadOnly="True" Grid.Column="22" Grid.Row="2" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx59" IsReadOnly="True" Grid.Column="22" Grid.Row="3" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>
            <TextBox Name="ManTxBx60" IsReadOnly="True" Grid.Column="22" Grid.Row="4" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Width="110"/>

         </Grid>

      </ScrollViewer>

      <!--Bottoni per passare da portautensile a cambio utensili manuale-->
      <Grid Grid.Row="1">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
         </Grid.ColumnDefinitions>
         <ToggleButton Name="ToolChangerBtn" Style="{StaticResource OmagCut_YellowToggleButton}" Content="Automatici"/>
         <ToggleButton Name="ManualToolChangerBtn" Style="{StaticResource OmagCut_YellowToggleButton}" Grid.Column="1" Content="Manuali"/>
      </Grid>

      <!-- Definizione della Grid inferiore per Button -->
      <Grid Name="LowerButtonGrid" Grid.Column="1" Grid.Row="3">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
         </Grid.ColumnDefinitions>

         <Button Name="OkBtn" Grid.Column="1" Style="{DynamicResource OmagCut_GradientBlueIconButton}">
            <Image Source="{DynamicResource VImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
         </Button>

         <Button Name="ExitBtn" Grid.Column="2" Style="{DynamicResource OmagCut_GradientBlueIconButton}">
            <Image Source="{DynamicResource XImg}" Style="{StaticResource OmagCut_ButtonIcon}"/>
         </Button>

      </Grid>

   </Grid>

</UserControl>
