<Grid x:Class="MachinePanelV"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
   IsEnabled="{Binding MachPanel_IsEnabled}">

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

   <Grid Margin="0,0,5,0">
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="1*"/>
      </Grid.ColumnDefinitions>
      <TextBlock Grid.Row="0" Grid.Column="0" Text="Macchina corrente" VerticalAlignment="Center"  Margin="0,0,5,0"/>
      <!--Combobox per selezionare la macchina corrente-->
      <ComboBox ItemsSource="{Binding Path=MachineList}" DisplayMemberPath="Name"
             SelectedItem="{Binding Path=SelectedMachine}" SelectedValuePath="Name"
             Height="22" Width="150"
             Grid.Row="0" Grid.Column="1"/>
   </Grid>
   <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center">
      <Button Command="{Binding ToolDbCommand}" ToolTip="{Binding ToolDBToolTip}"
           Style="{StaticResource ToolBar_TextButton}" Content="{Binding ToolDBMsg}"/>
      <Button Command="{Binding MachDbCommand}" ToolTip="{Binding MachiningDbToolTip}"
           Style="{StaticResource ToolBar_TextButton}" Content="{Binding MachiningDbMsg}"/>
      <!--<Button Command="{Binding SetUpCommand}" ToolTip="{Binding SetUpToolTip}"
           Style="{StaticResource ToolBar_TextButton}" Content="{Binding SetUpMsg}"
           Background="{Binding SetUp_Background}"/>-->
      <Button ToolTip="{Binding BeamTable_ToolTip}"
           Style="{StaticResource ToolBar_Button}"
           Command="{Binding BeamTable_Command}"
           Visibility="{Binding BeamTable_Visibility}">
         <Image Source="/Resources/Configuration/MachiningsTable.png" Stretch="Uniform"/>
      </Button>
      <Button ToolTip="{Binding WallTable_ToolTip}"
           Style="{StaticResource ToolBar_Button}"
           Command="{Binding WallTable_Command}"
           Visibility="{Binding WallTable_Visibility}">
         <Image Source="/Resources/Configuration/MachiningsTable.png" Stretch="Uniform"/>
      </Button>
      <!--<Button Command="{Binding MachOptionsCommand}" ToolTip="{Binding OptionsToolTip}">
      <Image Source="/Resources/ProjectManager/Options.png" Height="22" />
   </Button>-->
   </StackPanel>

</Grid>
