<Grid x:Class="ProjWndV"
      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="Auto"/>
      <RowDefinition Height="1*"/>
   </Grid.RowDefinitions>
   
   <EgtBEAMWALL:OnlyProdFreeContourInputV DataContext="{StaticResource FreeContourInputVM}"
                                          Visibility="{Binding Tag.FreeContourManager_Visibility, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjWndV}}}"/>

   <Grid Grid.Row="1">

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

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

         <Border Grid.RowSpan="2" Style="{StaticResource OnlyProdPage_Border}"/>

         <EgtBEAMWALL:OnlyProdFeatureListManagerV />

         <EgtBEAMWALL:OnlyProdFeatureListV Grid.Row="1"
                                           DataContext="{StaticResource FeatureListVM}"
                                           Tag="{Binding Tag.BTLStructureVM.SelBTLPart, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjWndV}}}"
                                           Margin="2,0,2,0"/>
      </Grid>

      <GridSplitter Grid.Column="1"
                    Style="{StaticResource Width_GridSplitter}"/>

      <Grid Grid.Column="2">
         <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
         </Grid.RowDefinitions>
         <EgtBEAMWALL:OnlyProdFeatureManagerV DataContext="{StaticResource FeatureManagerVM}"
                                              Tag="{Binding Tag.BTLStructureVM.SelBTLPart.SelBTLFeatureVM, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjWndV}}}"/>
         <TabControl Grid.Row="1"
                     Style="{StaticResource OnlyProd_TabControl}">
            <TabItem Header="Parametri Geometrici">
               <TabItem.Content>
                  <Border Style="{StaticResource OnlyProdPage_Border}">

                     <EgtBEAMWALL:OnlyProdPParameterListV DataContext="{StaticResource PParameterListVM}"
                                                          Tag="{Binding Tag.BTLStructureVM.SelBTLPart.SelBTLFeatureVM, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjWndV}}}"
                                                          Margin="5"/>
                  </Border>
               </TabItem.Content>
            </TabItem>
            <TabItem Header="Parametri di Lavorazione">
               <TabItem.Content>
                  <Border Style="{StaticResource OnlyProdPage_Border}">

                     <EgtBEAMWALL:OnlyProdQParameterListV DataContext="{StaticResource QParameterListVM}"
                                                          Tag="{Binding Tag.BTLStructureVM.SelBTLPart.SelBTLFeatureVM, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:ProjWndV}}}"
                                                          Margin="5"/>
                  </Border>
               </TabItem.Content>
            </TabItem>
         </TabControl>
      </Grid>

   </Grid>
   
</Grid>
