<EgtFloating:EgtFloatingPanel x:Class="OptimizePanelV"
                              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"
                              IsTopDockable="True" IsBottomDockable="False" IsLeftDockable="False"
                              IsRightDockable="False" Style="{StaticResource ToolBar_EgtFloatingPanel}">

   <ComboBox ItemsSource="{Binding PartTypeList}"
             SelectedItem="{Binding SelPartType}"
             Height="22"
             Width="85"
             Margin="5,0,2.5,0"
             Visibility="{Binding Optimize_Visibility}"/>

   <ComboBox ItemsSource="{Binding OriginTypeList}"
             SelectedItem="{Binding SelOriginType}"
             Height="22"
             Width="85"
             Margin="2.5,0,5,0"
             Visibility="{Binding OriginType_Visibility}"/>
   <CheckBox Content="{Binding LongDrillArea_Msg}"
             IsChecked="{Binding bLDIntersOther}"
             FlowDirection="RightToLeft"
             VerticalAlignment="Center"
             Margin="0,0,5,0"
             Visibility="{Binding NestingOption_Visibility}"
             Style="{StaticResource CheckBox_TextAlignLeft}"/>
   <TextBlock Text="{Binding MinScore_Msg}"
              VerticalAlignment="Center"
              Margin="0,0,5,0"
              Visibility="{Binding NestingOption_Visibility}"/>
   <TextBox Text="{Binding dMinScore}"
            Width="30"
            VerticalAlignment="Center"
            HorizontalContentAlignment="Center"
            Margin="0,0,5,0"
            Visibility="{Binding NestingOption_Visibility}"/>

   <Button Content="{Binding Optimize_Msg}"
           Width="70"
           FontWeight="Light"
           Style="{StaticResource ToolBar_Button}"
           Command="{Binding Optimize_Command}"
           IsEnabled="{Binding Optimize_IsEnabled}"
           Visibility="{Binding Optimize_Visibility}">
      <!--<Image Source="/Resources/InstrumentPanel/Analyze.png" Stretch="Uniform"/>-->
   </Button>

   <Button Style="{StaticResource ToolBar_Button}"
           Command="{Binding CalcRotFlip_Command}"
           IsEnabled="{Binding CalcRotFlip_IsEnabled}"
           Visibility="{Binding CalcRotFlip_Visibility}"
           ToolTip="{Binding CalcRotFlip_ToolTip}">
      <Image Source="/Resources/OptimizePanel/FlipRot.png" Stretch="Uniform"/>
   </Button>

   <Button Style="{StaticResource ToolBar_Button}"
           Command="{Binding UnlockFlip_Command}"
           IsEnabled="{Binding CalcRotFlip_IsEnabled}"
           Visibility="{Binding CalcRotFlip_Visibility}"
           ToolTip="{Binding UnlockFlip_ToolTip}">
      <Image Source="/Resources/OptimizePanel/UnlockFlip.png" Stretch="Uniform"/>
   </Button>

   <Button Style="{StaticResource ToolBar_Button}"
           Command="{Binding UnlockRot_Command}"
           IsEnabled="{Binding CalcRotFlip_IsEnabled}"
           Visibility="{Binding CalcRotFlip_Visibility}"
           ToolTip="{Binding UnlockRot_ToolTip}">
      <Image Source="/Resources/OptimizePanel/UnlockRotation.png" Stretch="Uniform"/>
   </Button>

   <Button ToolTip="{Binding Warehouse_ToolTip}"
           Style="{StaticResource ToolBar_Button}"
           Command="{Binding Warehouse_Command}"
           Visibility="{Binding MachiningPage_Visibility}">
      <Image Source="/Resources/OptimizePanel/Warehouse.png" Stretch="Uniform"/>
   </Button>

</EgtFloating:EgtFloatingPanel>
