<StatusBar x:Class="StatusBarV"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   Background="{StaticResource Omag_LightGray}">

   <StatusBar.ItemsPanel>
      <ItemsPanelTemplate>
         <Grid>
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="Auto"/>
               <ColumnDefinition Width="Auto"/>
               <ColumnDefinition Width="2*"/>
               <ColumnDefinition Width="Auto"/>
               <ColumnDefinition Width="Auto"/>
               <ColumnDefinition Width="Auto"/>
               <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
         </Grid>
      </ItemsPanelTemplate>
   </StatusBar.ItemsPanel>

   <!--Barra di caricamento-->
   <StatusBarItem Grid.Column="0">
      <ProgressBar Value="{Binding LoadingProgress}"
                   Height="20" Width="150"
                   Visibility="{Binding LoadingProgress_Visibility}"/>
   </StatusBarItem>

   <!--Bottone interruzione caricamento-->
   <StatusBarItem Grid.Column="1">
      <Button x:Name="StopLoadingBtn"
              Command="{Binding StopProgress_Command}" Content="X"
              IsEnabled="{Binding StopProgress_IsEnabled}"
              Width="{Binding ActualHeight, ElementName=StopLoadingBtn}"
              Visibility="{Binding StopProgress_IsVisible}"/>
   </StatusBarItem>

   <!--Stringa di output messaggi-->
   <StatusBarItem Grid.Column="2">
      <TextBlock Text="{Binding OutputMessage}"
                 Foreground="{Binding OutputMessage_Foreground}"/>
   </StatusBarItem>
   
   <!--Indica il tipo di punto notevole selezionato-->
   <StatusBarItem Grid.Column="3">
      <Button Content="{Binding SnapPointType}"
              Background="{Binding SnapPointType_Background}"
              Width="80"/>
   </StatusBarItem>
   
   <!--Indica la posizione del mouse quando è sulla scena-->
   <StatusBarItem Grid.Column="4">
      <TextBlock Text="{Binding CurrPos}"
                 TextAlignment="Right"
                 Foreground="{StaticResource Omag_Black}"
                 Width="250"/>
   </StatusBarItem>
   
   <!--Indica l'unità di misura-->
   <StatusBarItem Grid.Column="5">
      <TextBlock Text="{Binding MeasureUnit}"
                 Foreground="{StaticResource Omag_Black}"
                 Width="35"/>
   </StatusBarItem>

   <!--Indica la macchina corrente-->
   <StatusBarItem Grid.Column="6">
      <TextBlock Text="{Binding CurrMachine}"
                 Foreground="{StaticResource Omag_Black}"
                 Margin="0,0,5,0"/>
   </StatusBarItem>

</StatusBar>
