<EgtWPFLib5:EgtCustomWindow x:Class="AddPartWndV"
                            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="AddPartWndV">
   <Grid Margin="5,5,5,0">
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="Auto"/>
         <!--<RowDefinition Height="Auto"/>-->
      </Grid.RowDefinitions>

      <Grid HorizontalAlignment="Center"
            Margin="0,0,0,5">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
         </Grid.ColumnDefinitions>
         <TextBlock Text="Name"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding sNAM}"
                                Grid.Column="1"
                                Width="200"/>
      </Grid>
      <Grid Grid.Row="1"
            Margin="0,0,0,5">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
         </Grid.ColumnDefinitions>
         <TextBlock Text="Prod Number"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding nPDN}"
                                Grid.Column="1"
                                Width="45"/>
         <TextBlock Text="Count"
                    Grid.Column="2"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding sCNT}"
                                Grid.Column="3"
                                Width="45"/>
      </Grid>
      <Grid Grid.Row="2"
            Margin="0,0,0,5">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
         </Grid.ColumnDefinitions>
         <TextBlock Text="W"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding sW}"
                                Grid.Column="1"
                                Width="45"/>
         <TextBlock Text="H"
                    Grid.Column="2"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding sH}"
                                Grid.Column="3"
                                Width="45"/>
         <TextBlock Text="L"
                    Grid.Column="4"
                    Style="{StaticResource OptionTextBlock}"/>
         <EgtWPFLib5:EgtTextBox Text="{Binding sL}"
                                Grid.Column="5"
                                Width="45"/>
      </Grid>

      <Grid Grid.Row="3"
            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>
