<UserControl x:Class="MainShell.ParaSetting.View.WaferStraightenProcessParameterView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mw="http://www.maxwell-gp.com/"
             mc:Ignorable="d"
             d:DesignHeight="220" d:DesignWidth="900">
    <Grid Margin="4" HorizontalAlignment="Stretch">
        <StackPanel>
            <GroupBox Header="{DynamicResource ProcessControlGroup}" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
                <WrapPanel>
                    <ToggleButton Style="{StaticResource ProcessToggleStyle}" Content="{DynamicResource EnableWaferStraighten}" IsChecked="{Binding Parameter.EnableProcess}"/>
                    <ToggleButton Style="{StaticResource ProcessToggleStyle}" Content="{DynamicResource SingleStraighten}" IsChecked="{Binding Parameter.UseSingleStraighten}"/>
                    <ToggleButton Style="{StaticResource ProcessSmallToggleStyle}" Content="{DynamicResource XAxisDirectionLabel}" IsChecked="{Binding Parameter.StraightAngleDirX}"/>
                </WrapPanel>
            </GroupBox>
            <GroupBox Header="{DynamicResource StraightenThresholdGroup}" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
                <StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="0,0,24,0">
                        <Label Style="{StaticResource ProcessLabelStyle}" Content="{DynamicResource MaxBadDieCount}"/>
                        <mw:IntNumberBox Style="{StaticResource ProcessIntNumberBoxStyle}" Value="{Binding Parameter.MaxBadDieCount}" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="6000" Minimum="1" Increment="1"/>
                    </StackPanel>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>
</UserControl>