<EgtFloating:EgtFloatingManager x:Class="ProjectV"
                                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"
                                xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
                                xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Supervisor">

   <EgtFloating:EgtFloatingTray x:Name="PROJECTTOPTRAY" DockPanel.Dock="Top">
      <EgtBEAMWALL:SupervisorManagerV DataContext="{StaticResource SupervisorManagerVM}"/>
      <EgtBEAMWALL:MachinePanelV DataContext="{StaticResource MachinePanelVM}"
                                 Visibility="Collapsed"/>
   </EgtFloating:EgtFloatingTray>

   <Grid>
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="{Binding GridDims[0].GridLen, Mode=TwoWay}"/>
         <ColumnDefinition Width="Auto"/>
         <ColumnDefinition Width="{Binding GridDims[1].GridLen, Mode=TwoWay}"/>
      </Grid.ColumnDefinitions>

      <EgtBEAMWALL:LeftPanelV Grid.Column="2" Grid.Row="0" Grid.RowSpan="4"
                           DataContext="{StaticResource LeftPanelVM}"
                           Tag="{Binding DataContext.SupervisorMachGroupPanelVM, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjectV}}}"
                           Visibility="{Binding DataContext.LeftPanel_Visibility, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjectV}}}"/>

      <Grid>
         <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="Auto"/>
         </Grid.RowDefinitions>

         <EgtFloating:EgtFloatingTray x:Name="SCENETOPTRAY"
                                      Grid.Column="0"
                                      Grid.Row="0">
            <WrapPanel Orientation="Horizontal" Width="{Binding ActualWidth, ElementName=TOPTRAY}">
               <EgtBEAMWALL:ShowPanelV DataContext="{StaticResource ShowPanelVM}"/>
               <!--<EgtBEAMWALL:ShowBeamPanelV DataContext="{StaticResource ShowBeamPanelVM}"
                                  Visibility="{Binding DataContext.ShowBeamPanel_Visibility, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjectV}}}"/>-->
               <EgtBEAMWALL:ViewPanelV DataContext="{StaticResource ViewPanelVM}"/>
               <EgtBEAMWALL:CalcPanelV DataContext="{StaticResource CALCPanelVM}"/>
               <!--<EgtBEAMWALL:InstrumentPanelV DataContext="{StaticResource InstrumentPanelVM}"/>-->
            </WrapPanel>
         </EgtFloating:EgtFloatingTray>

         <EgtBEAMWALL:MachCommandMessagePanelV Grid.Column="0" Grid.Row="2" 
                                               DataContext="{StaticResource MachCommandMessagePanelVM}"/>
         <TabControl Grid.Row="1"
                     SelectedIndex="{Binding SelTabPage}"
                     TabStripPlacement="Right"
                     Margin="0"
                     Padding="0"
                     BorderThickness="0">
            <TabControl.ItemContainerStyle>
               <Style TargetType="{x:Type TabItem}">
                  <Setter Property="Visibility" Value="Collapsed"/>
               </Style>
            </TabControl.ItemContainerStyle>
            <TabItem Header="SCENE">
               <TabItem.Content>
                  <EgtBEAMWALL:SceneHostV Grid.Column="0" Grid.Row="1"/>
               </TabItem.Content>
            </TabItem>
            <TabItem Header="MDI">
               <TabItem.Content>
                  <EgtBEAMWALL:MDIPageV DataContext="{StaticResource MDIPageVM}"/>
               </TabItem.Content>
            </TabItem>
            <TabItem Header="MACHINELOG">
               <TabItem.Content>
                  <EgtBEAMWALL:MachineLogPageV DataContext="{StaticResource MachineLogPageVM}"/>
               </TabItem.Content>
            </TabItem>
         </TabControl>

      </Grid>

      <GridSplitter  Grid.Column="1"
                     Grid.RowSpan="4"
                     Width="3" 
                     HorizontalAlignment="Center" 
                     VerticalAlignment="Stretch"/>

      <!--<EgtBEAMWALL:BottomPanelV DockPanel.Dock="Bottom"
                             DataContext="{StaticResource BottomPanelVM}"
                             Tag="{Binding DataContext.BTLStructureVM.SelBTLPart, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjectV}}}"
                             Visibility="{Binding DataContext.BottomPanel_Visibility, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjectV}}}"/>-->

   </Grid>

</EgtFloating:EgtFloatingManager>
