<UserControl x:Class="MainShell.ParaSetting.View.ProductPositionProcessParameterView"
             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="240" d:DesignWidth="900">
    <Grid Margin="4" HorizontalAlignment="Stretch">
        <StackPanel>
            <GroupBox Header="{DynamicResource ProcessControlGroup}" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
                <WrapPanel>
                    <ToggleButton Style="{StaticResource ProcessToggleStyle}" Content="{DynamicResource EnableProductPosition}" IsChecked="{Binding Parameter.EnableProcess}"/>
                </WrapPanel>
            </GroupBox>
            <GroupBox Header="{DynamicResource PositionThresholdGroup}" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
                <StackPanel>
                    <Grid Margin="0,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="220"/>
                            <ColumnDefinition Width="260"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Label Grid.Column="0" Style="{StaticResource ProcessLabelStyle}" Content="{DynamicResource GlassMarkDisMaxOffset}"/>
                        <mw:NumberBox Grid.Column="1" Style="{StaticResource ProcessLargeNumberBoxStyle}" Value="{Binding Parameter.GlassMarkDisMaxOffset}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="1000" Minimum="-1000" Increment="0.5"/>
                        <TextBlock Grid.Column="2" Style="{StaticResource ProcessUnitTextStyle}" Text="mm"/>
                    </Grid>
                    <Border Style="{StaticResource ProcessDividerStyle}"/>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="220"/>
                            <ColumnDefinition Width="260"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Label Grid.Column="0" Style="{StaticResource ProcessLabelStyle}" Content="{DynamicResource PcbLimitAngle}"/>
                        <mw:NumberBox Grid.Column="1" Style="{StaticResource ProcessLargeNumberBoxStyle}" Value="{Binding Parameter.PcbLimitAngle}" DecimalPlaces="3" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10" Minimum="0" Increment="0.1"/>
                        <TextBlock Grid.Column="2" Style="{StaticResource ProcessUnitTextStyle}" Text="&#176;"/>
                    </Grid>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>
</UserControl>