<UserControl x:Class="MachineStatusUC"
   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" 
   mc:Ignorable="d" 
   d:DesignHeight="85.3" d:DesignWidth="1280" Initialized="MachineStatus_Initialized" Loaded="MachineStatus_Loaded">
   
   <!-- ** Definizione della MachineStatusBar ** -->
   <Grid Name="MachineStatusGrid" Background="{StaticResource OmagCut_DarkGray}">
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="14*"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
         <RowDefinition Height="2"/>
         <RowDefinition Height="1*"/>
      </Grid.RowDefinitions>

      <Border Name="LongSeparator" Grid.ColumnSpan="17" Background="{StaticResource OmagCut_White}" />

      <Grid Name="CurrMachineStatusGrid" Grid.Row="1">
         <Image Name="MachineStatusImage"
            Style="{DynamicResource OmagCut_MachineStatusIcon}"/>
      </Grid>
      
      <UniformGrid Name="AxisUniformGrid" Grid.Column="2" Grid.Row="1" Columns="8">

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Name="Axis1NameTxBx" Grid.Column="0" Text="X"
                  Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis1TxBx" Grid.Column="1" Text="-2874.765" 
                  Style="{DynamicResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis1TxBx" Grid.Column="2" Grid.Row="2" Text="-1126.235"
               Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Name="Axis2NameTxBx" Grid.Column="0" Text="Y"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis2TxBx" Grid.Column="1" Text="-539.427"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis2TxBx" Grid.Column="4" Grid.Row="2" Text="-460.573"
         Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Name="Axis3NameTxBx" Grid.Column="0" Text="Z" 
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis3TxBx" Grid.Column="1" Text="-55.000" 
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis3TxBx" Grid.Column="6" Grid.Row="2" Text="-10.000"
         Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Name="Axis4NameTxBx" Grid.Column="0" Text="C"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis4TxBx" Grid.Column="1" Text="135.000"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis4TxBx" Grid.Column="8" Grid.Row="2" Text="0.000"
         Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Name="Axis5NameTxBx" Grid.Column="0" Text="B"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis5TxBx" Grid.Column="1" Text="90.000"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis5TxBx" Grid.Column="10" Grid.Row="2" Text="0.000"
         Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

         <Grid Visibility="Collapsed">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="2"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

               <Grid Margin="0,0,0,-3">
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="Auto" />
                     <ColumnDefinition Width="1*" />
                  </Grid.ColumnDefinitions>

                  <TextBlock Name="Axis6NameTxBx" Grid.Column="0" Text="A"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis6TxBx" Grid.Column="1" Text="90.000"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis6TxBx" Grid.Column="10" Grid.Row="2" Text="0.000"
         Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

         <Grid Visibility="Collapsed">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="2"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

               <Grid Margin="0,0,0,-3">
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="Auto" />
                     <ColumnDefinition Width="1*" />
                  </Grid.ColumnDefinitions>

                  <TextBlock Name="Axis7NameTxBx" Grid.Column="0" Text="U"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis7TxBx" Grid.Column="1" Text="-2590.000"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis7TxBx" Grid.Column="10" Grid.Row="2" Text="0.000"
         Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

         <Grid Visibility="Collapsed">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="2"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

               <Grid Margin="0,0,0,-3">
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="Auto" />
                     <ColumnDefinition Width="1*" />
                  </Grid.ColumnDefinitions>

                  <TextBlock Name="Axis8NameTxBx" Grid.Column="0" Text="V"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis8TxBx" Grid.Column="1" Text="90.000"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis8TxBx" Grid.Column="10" Grid.Row="2" Text="0.000"
         Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

         <Grid Visibility="Collapsed">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="2"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

               <Grid Margin="0,0,0,-3">
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="Auto" />
                     <ColumnDefinition Width="1*" />
                  </Grid.ColumnDefinitions>

                  <TextBlock Name="Axis9NameTxBx" Grid.Column="0" Text="W"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis9TxBx" Grid.Column="1" Text="90.000"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis9TxBx" Grid.Column="10" Grid.Row="2" Text="0.000"
                  Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

         <Grid Visibility="Collapsed">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="2"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

               <Grid Margin="0,0,0,-3">
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="Auto" />
                     <ColumnDefinition Width="1*" />
                  </Grid.ColumnDefinitions>

                  <TextBlock Name="Axis10NameTxBx" Grid.Column="0" Text="Q"
                     Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="Axis10TxBx" Grid.Column="1" Text="0.000"
                     Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

               <TextBlock Name="DeltaAxis10TxBx" Grid.Column="10" Grid.Row="2" Text="0.000"
                  Style="{StaticResource OmagCut_LowerBarOverrideTextBlock}"/>

            </UniformGrid>

         </Grid>

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Grid.Column="0" Name="FeedNameTxBx" Text="F" Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Grid.Column="1" Name="FeedTxBx" Text="1000"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

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

                  <TextBlock Grid.Column="0" Name="FeedOverrideNameTxBx" Text="VVV"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Grid.Column="1" Name="FeedOverrideTxBx" Text="70%"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}" />

               </Grid>

            </UniformGrid>

         </Grid>

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Name="SpeedNameTxBx" Grid.Column="0" Text="S"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Name="SpeedTxBx" Grid.Column="1" Text="700"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

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

                  <TextBlock Grid.Column="0" Name="SpeedOverrideNameTxBx" Text="VVV"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Grid.Column="1" Name="SpeedOverrideTxBx" Text="85%"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

            </UniformGrid>

         </Grid>

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

            <Border Background="{StaticResource OmagCut_White}" />

            <UniformGrid Grid.Column="1" Rows="2">

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

                  <TextBlock Grid.Column="0" Name="ConsumptionNameTxBx" Text="A"
            Style="{StaticResource OmagCut_LowerBarTitleTextBlock}"/>
                  <TextBlock Grid.Column="1" Name="ConsumptionTxBx" Text="25.00"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}" FontSize="22"/>

               </Grid>

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

                  <TextBlock Grid.Column="1" Name="AOverrideTxBx" Text="15%"
            Style="{StaticResource OmagCut_LowerBarValueTextBlock}"/>

               </Grid>

            </UniformGrid>

         </Grid>

      </UniformGrid>
      
   </Grid>

</UserControl>
