<EgtWPFLib5:EgtCustomWindow x:Class="ChangeParameterWndV"
                            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="Height"
                            Width="300"
                            WindowStartupLocation="CenterOwner"
                            IsClosable="False"
                            IsMinimizable="False"
                            IsResizable="False"
                            Title="ChangeParameterWnd">

   <Grid Margin="5,5,5,0">
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="2*"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="5"/>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="5"/>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="5"/>
         <RowDefinition Height="Auto"/>
         <RowDefinition Height="5"/>
         <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>

      <TextBlock Text="Process"
                 Style="{StaticResource OptionTextBlock}"/>
      <ComboBox Grid.Column="1"
                ItemsSource="{Binding PRCList}"
                SelectedItem="{Binding SelPRC}"
                DisplayMemberPath="ghDesc"
                HorizontalAlignment="Stretch"
                Style="{StaticResource FeatureComboBox}"/>

      <TextBlock Grid.Row="2"
                 Text="Parameter"
                 Style="{StaticResource OptionTextBlock}"/>
      <ComboBox Grid.Row="2" Grid.Column="1"
                ItemsSource="{Binding ParamList}"
                SelectedItem="{Binding SelParam}"
                DisplayMemberPath="sNameAndDescription"
                HorizontalAlignment="Stretch"
                Style="{StaticResource FeatureComboBox}"/>

      <TextBlock Grid.Row="4" 
                 Text="Actual value"
                 Style="{StaticResource OptionTextBlock}"/>
      <EgtWPFLib5:EgtTextBox Grid.Row="4" Grid.Column="1"
                             Text="{Binding SelParam.sActualValue}"
                             Visibility="{Binding SelParam.IsTextBox_Visibility}"/>
      <CheckBox Grid.Row="4" Grid.Column="1"
                IsChecked="{Binding SelParam.bActualValue}"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Visibility="{Binding SelParam.IsCheckBox_Visibility}"/>

      <TextBlock Grid.Row="6" Text="New Value"
                 Style="{StaticResource OptionTextBlock}"/>
      <EgtWPFLib5:EgtTextBox Grid.Row="6" Grid.Column="1"
                             Text="{Binding SelParam.sNewValue}"
                             Visibility="{Binding SelParam.IsTextBox_Visibility}"/>
      <CheckBox Grid.Row="6" Grid.Column="1"
                IsChecked="{Binding SelParam.bNewValue}"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Visibility="{Binding SelParam.IsCheckBox_Visibility}"/>

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