<UserControl x:Class="MainShell.ParaSetting.View.DieRecognizeProcessParameterView"
             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/"
             xmlns:common="clr-namespace:MainShell.Common"
             xmlns:conv="clr-namespace:MainShell.Converter"
             mc:Ignorable="d"
             d:DesignHeight="220" d:DesignWidth="900">
    <UserControl.Resources>
        <ResourceDictionary>
            <conv:EnumBindingSourceExtension x:Key="WaferScanModeEnums" UseDescription="True" EnumType="{x:Type common:WaferScanMode}"/>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Margin="4" HorizontalAlignment="Stretch">
        <StackPanel>
            <GroupBox Header="{DynamicResource ProcessControlGroup}" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
                <WrapPanel>
                    <ToggleButton Style="{StaticResource ProcessToggleStyle}" Content="{DynamicResource EnableDieRecognize}" IsChecked="{Binding Parameter.EnableProcess}"/>
                    <ToggleButton Style="{StaticResource ProcessToggleStyle}" Content="{DynamicResource SingleWaferPosition}" IsChecked="{Binding Parameter.UseSingleWaferPosition}"/>
                    <ToggleButton Style="{StaticResource ProcessToggleStyle}" Content="{DynamicResource WaferWaveCheck}" IsChecked="{Binding Parameter.UseWaferWaveCheck}"/>
                    <ToggleButton Style="{StaticResource ProcessToggleStyle}" Content="{DynamicResource ChangePid}" IsChecked="{Binding Parameter.ChangePid}"/>
                </WrapPanel>
            </GroupBox>
            <GroupBox Header="{DynamicResource DieRecognizeStrategyGroup}" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
                <StackPanel>
                    <Grid Margin="0,0,0,12">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="220"/>
                            <ColumnDefinition Width="260"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Label Grid.Column="0" Style="{StaticResource ProcessLabelStyle}" Content="{DynamicResource DieAngleThreshold}"/>
                        <mw:NumberBox Grid.Column="1" Style="{StaticResource ProcessLargeNumberBoxStyle}" Value="{Binding Parameter.DieAngleThreshold}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="1000" Minimum="-1000" Increment="0.5"/>
                        <TextBlock Grid.Column="2" Style="{StaticResource ProcessUnitTextStyle}" Text="&#176;"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="220"/>
                            <ColumnDefinition Width="260"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Label Grid.Column="0" Style="{StaticResource ProcessLabelStyle}" Content="{DynamicResource WaferScanModeLabel}"/>
                        <ComboBox Grid.Column="1" Style="{StaticResource ProcessLargeComboBoxStyle}" DisplayMemberPath="Description" SelectedValuePath="Value" SelectedValue="{Binding Parameter.WaferScanMode}" ItemsSource="{StaticResource WaferScanModeEnums}"/>
                    </Grid>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>
</UserControl>