<EgtWPFLib5:EgtCustomWindow x:Class="NewAddFeatureWndV"
                            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"
                            WindowStyle="None" ResizeMode="NoResize"
                            SizeToContent="WidthAndHeight"
                            WindowStartupLocation="CenterOwner"
                            IsClosable="False"
                            IsMinimizable="False"
                            IsResizable="False"
                            Title="AddProcess"
                            Style="{StaticResource OnlyProd_EgtCustomWindow}">

   <Grid Margin="5">
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="Auto"/>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="Auto"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="1*"/>
         <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>
      <Border Background="{StaticResource BeamWall_Kashmir}" Margin="0,2,0,2" CornerRadius="4,0,0,4">
      <TextBlock Text="{Binding Process_Msg}"
                 Style="{StaticResource ListTextBlock}"/>
      </Border>
      <Border Grid.Row="1" 
              Style="{StaticResource OnlyProdPage_Border}"
              CornerRadius="4,0,0,4"
              BorderThickness="2,2,0,2">
         <ListBox Grid.Row="1"
                  ItemsSource="{Binding PRCListView}"
                  SelectedItem="{Binding nSelPRC}"
                  Style="{StaticResource NewAddFeature_ListBox}"
                  ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}">
            <ListBox.ItemTemplate>
               <DataTemplate>
                  <TextBlock Text="{Binding ghDesc}"
                             ToolTip="{Binding ghDesc}"
                             TextAlignment="Justify"
                             Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type ListBox}}}"
                             Style="{StaticResource OptionTextBlock}"/>
               </DataTemplate>
            </ListBox.ItemTemplate>
         </ListBox>
      </Border>
      <Border Grid.Column="1" Background="{StaticResource BeamWall_Kashmir}" Margin="0,2,0,2">
         <TextBlock Grid.Column="1"
                 Text="{Binding Custom_Msg}"
                 Style="{StaticResource ListTextBlock}"/>
      </Border>
      <Border Grid.Row="1" 
              Grid.Column="1" 
              Style="{StaticResource OnlyProdPage_Border}"
              CornerRadius="0"
              BorderThickness="0,2,0,2">
         <ListBox ItemsSource="{Binding MacroCustomList}"
                  SelectedIndex="{Binding nSelMacroCustom}"
                  Style="{StaticResource MacroCustom_ListBox}">
            <ListBox.ItemsPanel>
               <ItemsPanelTemplate>
                  <WrapPanel Style="{StaticResource MacroCustom_WrapPanel}"/>
               </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
               <DataTemplate>
                  <Grid>
                     <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                     </Grid.RowDefinitions>
                     <TextBlock Text="{Binding sMacroName}"
                                Style="{StaticResource Macro_TextBlock}"/>
                     <Image Grid.Row="1" 
                            Source="{Binding sMacroDrawPath}"
                            Style="{StaticResource Macro_Image}"/>
                  </Grid>
               </DataTemplate>
            </ListBox.ItemTemplate>
         </ListBox>
      </Border>
      <Border Grid.Column="2" Background="{StaticResource BeamWall_Kashmir}" Margin="0,2,0,2" Padding="0,10,0,10" CornerRadius="0,4,4,0">
         <TextBlock 
                 Text="{Binding Default_Msg}"
                 Style="{StaticResource ListTextBlock}"/>
      </Border>
      <Border Grid.Row="1" 
              Grid.Column="2" 
              Style="{StaticResource OnlyProdPage_Border}"
              CornerRadius="0,4,4,0"
              BorderThickness="0,2,2,2">
         <ListBox ItemsSource="{Binding MacroDefaultList}"
                  SelectedIndex="{Binding nSelMacroDefault}"
                  Style="{StaticResource MacroDefault_ListBox}"
                  ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}">
            <ListBox.ItemTemplate>
               <DataTemplate>
                  <TextBlock Text="{Binding sMacroName}"
                             TextAlignment="Justify"
                             Style="{StaticResource MacroDefault_TextBlock}"/>
               </DataTemplate>
            </ListBox.ItemTemplate>
         </ListBox>
      </Border>
      <UniformGrid Columns="2"
                   Grid.Row="2"
                   Grid.ColumnSpan="3"
                   Margin="5">
         <Button Content="{Binding OK_Msg}"
                 Command="{Binding Ok_Command}"
                 IsDefault="True"
                 Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
         <Button Content="{Binding Cancel_Msg}"
                 IsCancel="True"
                 Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
      </UniformGrid>
   </Grid>
</EgtWPFLib5:EgtCustomWindow>
