<EgtFloating:EgtFloatingManager x:Class="OnlyProdProjectV"
                                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:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core;assembly=EgtBEAMWALL.Core"
                                xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Supervisor"
                                DataContext="{StaticResource ProjectVM}">
  
   <EgtFloating:EgtFloatingTray x:Name="PROJECTTOPTRAY" DockPanel.Dock="Top" Background="{StaticResource BeamWall_RegentStBlue}">
      <EgtBEAMWALL:OnlyProdSupervisorManagerV DataContext="{StaticResource SupervisorManagerVM}" Margin="5,5,0,5"/>
      <EgtBEAMWALLCORE: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:OnlyProdLeftPanelV Grid.Column="2" Grid.Row="0" Grid.RowSpan="4"
                                      DataContext="{StaticResource LeftPanelVM}"
                                      Tag="{Binding DataContext.SupervisorMachGroupPanelVM, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdProjectV}}}"
                                      Visibility="{Binding DataContext.LeftPanel_Visibility, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdProjectV}}}"/>

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

         <EgtFloating:EgtFloatingTray x:Name="SCENETOPTRAY">
            <WrapPanel Orientation="Horizontal" Width="{Binding ActualWidth, ElementName=TOPTRAY}" HorizontalAlignment="Center">
               <EgtBEAMWALL:OnlyProdShowPanelV DataContext="{StaticResource ShowPanelVM}" Margin="0,5,50,5"/>
               <EgtBEAMWALL:OnlyProdViewPanelV DataContext="{StaticResource ViewPanelVM}" Margin="0,5,50,5"/>
               <EgtBEAMWALL:OnlyProdCalcPanelV DataContext="{StaticResource CALCPanelVM}" Margin="0,5,0,5"/>
            </WrapPanel>
         </EgtFloating:EgtFloatingTray>

         <Border Grid.Row="2" Grid.RowSpan="2" Style="{StaticResource OnlyProdPage_Border}" Background="Transparent" Margin="0.5,2,1,2">

            <EgtBEAMWALL:OnlyProdMachCommandMessagePanelV Grid.Row="2" 
                                                          DataContext="{StaticResource MachCommandMessagePanelVM}"
                                                          HorizontalAlignment="Center"/>
         </Border>

         <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.Row="1"/>
               </TabItem.Content>
            </TabItem>
            <TabItem Header="MDI">
               <TabItem.Content>
                  <EgtBEAMWALL:OnlyProdMDIPageV DataContext="{StaticResource MDIPageVM}"/>
               </TabItem.Content>
            </TabItem>
            <TabItem Header="MACHINELOG">
               <TabItem.Content>
                  <EgtBEAMWALL:OnlyProdMachineLogPageV DataContext="{StaticResource MachineLogPageVM}"/>
               </TabItem.Content>
            </TabItem>
         </TabControl>

      </Grid>

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

   </Grid>
</EgtFloating:EgtFloatingManager>
