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

        <Grid HorizontalAlignment="Center"
              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="{Binding MoveDirMsg}"
                       Style="{StaticResource OptionTextBlock}"
                       Grid.ColumnSpan="2"
                       Margin="0,5"/>

            <RadioButton IsChecked="{Binding LeftIsChecked}"
                         Style="{StaticResource ToolBar_ToggleButton}"
                         Grid.Row="1" Grid.Column="0">
                <Image Source="/Resources/MovePartInRawPart/MoveLeftParts.png" Stretch="Uniform"/>
            </RadioButton>
            <RadioButton IsChecked="{Binding RightIsChecked}" 
                         Style="{StaticResource ToolBar_ToggleButton}"
                         Grid.Row="1" Grid.Column="1">
                <Image Source="/Resources/MovePartInRawPart/MoveRightParts.png" Stretch="Uniform"/>
            </RadioButton>
        </Grid>

        <Grid Grid.Row="1"
              Margin="0,0,0,5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <TextBlock Text="{Binding MoveLenMsg}"
                       Style="{StaticResource OptionTextBlock}"
                       HorizontalAlignment="Center"
                       Margin="0,5"/>
            <EgtWPFLib5:EgtTextBox Text="{Binding sMoveLen}"
                                   Grid.Row="1"
                                   Width="200"/>
        </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>
