<EgtWPFLib5:EgtCustomWindow x:Class="AddFeatureWndV"
                            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="AddProcess">
   <StackPanel Margin="5,5,5,0">
      <TabControl SelectedIndex="{Binding SelGRPType}">
         <TabItem Header="L"/>
         <TabItem Header="T"/>
      </TabControl>
      <Border Grid.Row="1"
              BorderThickness="1"
              BorderBrush="DarkGray"
              Background="White"
              Margin="0,-6,0,5">
         <Grid Margin="0,5,0,0">
            <Grid.RowDefinitions>
               <RowDefinition Height="Auto"/>
               <RowDefinition Height="1*"/>
               <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <Grid HorizontalAlignment="Center"
                  Grid.Row="0"
                  Margin="0,0,0,5">
               <Grid.RowDefinitions>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
               </Grid.RowDefinitions>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="Auto"/>
                  <ColumnDefinition Width="Auto"/>
               </Grid.ColumnDefinitions>
               <TextBlock Text="Process"
                          Style="{StaticResource OptionTextBlock}"/>
               <ComboBox ItemsSource="{Binding PRCList}"
                         SelectedItem="{Binding nSelPRC}"
                         Grid.Column="1"
                         DisplayMemberPath="ghDesc"
                         Width="200"
                         Style="{StaticResource FeatureComboBox}"/>
               <TextBlock Text="Macro"
                          Grid.Row="1"
                          Margin="0,5,0,0"
                          Style="{StaticResource OptionTextBlock}"/>
               <ComboBox ItemsSource="{Binding MacroList}"
                         SelectedIndex="{Binding nSelMacro}"
                         Grid.Row="1"
                         Grid.Column="1"
                         DisplayMemberPath="Name"
                         IsEnabled="{Binding MacroList_IsEnabled}"
                         Width="200"
                         Margin="0,5,0,0"
                         Style="{StaticResource FeatureComboBox}"/>
            </Grid>
            <Image Source="{Binding sDrawPath}"
                   Grid.Row="1"
                   Height="300"
                   Width="300"
                   Margin="5,0,5,5"/>

            <!--<StackPanel Orientation="Horizontal"
                        HorizontalAlignment="Center"
                        Grid.Row="2"
                        Margin="0,0,0,5">
               <TextBlock Text="Face"
                          Style="{StaticResource OptionTextBlock}"/>
               <ComboBox ItemsSource="{Binding SIDEList}"
                         SelectedItem="{Binding nSelSIDE}"
                         Style="{StaticResource FeatureComboBox}"/>
               <TextBlock Text="Group"
                          Style="{StaticResource OptionTextBlock}"/>
               <ComboBox ItemsSource="{Binding GRPList}"
                         SelectedItem="{Binding nSelGRP}"
                         Style="{StaticResource FeatureComboBox}"/>
               <TextBlock Text="{Binding sName}"
                          Style="{StaticResource OptionTextBlock}"/>
            </StackPanel>-->

            <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>
      </Border>
         
   </StackPanel>
</EgtWPFLib5:EgtCustomWindow>
