<EgtWPFLib5:EgtCustomWindow x:Class="ProjectTypeWndV"
                            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"
                            MinWidth="500"
                            WindowStartupLocation="CenterOwner"
                            IsClosable="False"
                            IsMinimizable="False"
                            IsResizable="False"
                            Title="ProjectType">
    <StackPanel Margin="5,5,5,0">
        <Border Grid.Row="1"
              BorderThickness="1"
              BorderBrush="DarkGray"
              Background="White"
              Margin="5">
            <Grid Margin="5">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="1*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <Grid HorizontalAlignment="Center"
                  Grid.Row="0"
                  Margin="15">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding ChooseMachine_Msg}"
                               Style="{StaticResource OptionTextBlock}"
                               Grid.Row="0" Grid.ColumnSpan="2"/>
                    <Rectangle Height="22" Grid.Row="1"/>
                    <ComboBox ItemsSource="{Binding MachineList}" DisplayMemberPath="Name" 
                              SelectedItem="{Binding SelMachine}" SelectedValuePath="Name" 
                              Grid.Row="2"
                              Style="{StaticResource BtlData_ComboBox}"/>
                </Grid>

                <Grid HorizontalAlignment="Center"
                      Grid.Row="1"
                      Margin="15"
                      Visibility="{Binding IsBoth_Visibility}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding ChooseType_Msg}"
                               Style="{StaticResource OptionTextBlock}"
                               Grid.Row="0" Grid.ColumnSpan="2"/>
                    <Rectangle Height="22" Grid.Row="1"/>
                    <ComboBox ItemsSource="{Binding TypeList}"
                              SelectedItem="{Binding nSelType}"
                              Grid.Row="2"
                              Style="{StaticResource BtlData_ComboBox}"/>
                </Grid>

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