<Grid x:Class="ProdWndV"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer">

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

   <Grid.Resources>
      <Style TargetType="TextBlock">
         <Style.Triggers>
            <Trigger Property="Text" Value="">
               <Setter Property="Visibility" Value="Collapsed"/>
            </Trigger>
         </Style.Triggers>
      </Style>
   </Grid.Resources>

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

      <Border Style="{StaticResource OnlyProdPage_Border}">

         <EgtBEAMWALL:OnlyProdFeatureInPartInRawPartListV DataContext="{StaticResource FeatureInPartInRawPartListVM}"
                                                          Tag="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.SelPart, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"
                                                          Margin="0,0,2,0"/>
      </Border>
      
      <GridSplitter Grid.Column="1"
                    Style="{StaticResource Width_GridSplitter}"/>

      <Border Grid.Column="2" 
              Style="{StaticResource OnlyProdQParameterList_Border}">

         <EgtBEAMWALL:OnlyProdQParameterListProdV DataContext="{StaticResource DuploQParameterListVM}"
                                                  Tag="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"/>
      </Border>
   </Grid>
   <TextBlock Grid.Row="1"
              Text="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"
              Margin="5,0,5,0"
              Foreground="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"/>
   <TextBlock Grid.Row="2"
              Text="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.SelPart.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"
              Margin="5,0,5,0"
              Foreground="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.SelPart.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"/>
   <TextBlock Grid.Row="3"
              Text="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"
              Margin="5,0,5,0"
              Foreground="{Binding Tag.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProdWndV}}}"/>
</Grid>
