<EgtWPFLib5:EgtCustomWindow x:Class="AddRawPartWndV"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
                            xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
                            Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
                            WindowStyle="None" ResizeMode="NoResize"
                            SizeToContent="WidthAndHeight"
                            WindowStartupLocation="CenterOwner"
                            IsClosable="False"
                            IsMinimizable="False"
                            IsResizable="False"
                            Title="AddRawPartWnd">
   <Grid Margin="5,5,5,0">
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>
      <ComboBox ItemsSource="{Binding DimensionsList}"
                SelectedItem="{Binding SelDimension}"
                DisplayMemberPath="sDimension"
                Visibility="{Binding DimensionsList_Visibility}"
                Margin="0,0,0,5"/>
      <ItemsControl ItemsSource="{Binding VariableList}"
                    Grid.Row="1">
         <ItemsControl.ItemTemplate>
            <DataTemplate>
               <Grid Margin="0,0,0,5">
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="1*"/>
                     <ColumnDefinition Width="Auto"/>
                  </Grid.ColumnDefinitions>

                  <TextBlock Text="{Binding sMsg}"
                             Style="{StaticResource OptionTextBlock}"/>
                  <EgtWPFLib5:EgtTextBox Text="{Binding sValue}"
                                         Grid.Column="1"
                                         Width="65"/>
               </Grid>
            </DataTemplate>
         </ItemsControl.ItemTemplate>
      </ItemsControl>
      <!--<Grid Margin="0,0,0,5">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="Auto"/>
         </Grid.ColumnDefinitions>

         <TextBlock Text="Lunghezza"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding sL}"
                                Grid.Column="1"
                                Width="65"/>
      </Grid>
      <Grid Margin="0,0,0,5"
            Grid.Row="1">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="Auto"/>
         </Grid.ColumnDefinitions>
         <TextBlock Text="Ritaglio iniziale"
                    Grid.Row="1"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding sPOSX}"
                                Grid.Column="1"
                                Grid.Row="1"
                                Width="65"/>
      </Grid>-->
      <Grid Grid.Row="2"
            Margin="0,0,0,5">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="1*"/>
         </Grid.ColumnDefinitions>
         <Button Content="Ok"
                 Command="{Binding Ok_Command}"
                 IsDefault="True"
                 Grid.Column="1"
                 Style="{StaticResource EgtWPFLib5_InputButton}"/>
         <Button Content="Cancel"
                 IsCancel="True"
                 Grid.Column="3"
                 Style="{StaticResource EgtWPFLib5_InputButton}"/>
      </Grid>
   </Grid>
</EgtWPFLib5:EgtCustomWindow>
