<UserControl x:Class="XHandler.View.Consumables.TipsSetting"
|
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:local="clr-namespace:XHandler.View.Consumables"
|
xmlns:str="clr-namespace:XHandler.Properties"
|
mc:Ignorable="d"
|
d:DesignHeight="450" d:DesignWidth="800"
|
Loaded="UserControl_Loaded">
|
<Grid IsEnabled="{Binding is_default_type, Converter={StaticResource intToEnableConvert}}">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="0.3*"/>
|
<ColumnDefinition Width="0.3*"/>
|
<ColumnDefinition Width="0.4*"/>
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strMaxVolumn}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static str:Resources.strAirVolumn}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="tbtip_volume_max" Grid.Row="1" Grid.Column="0" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="tip_volume_max" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-100000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="0" Grid.Column="0" x:Name="tvmError" Text="{Binding ElementName=tbtip_volume_max,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBox x:Name="tbtip_air_volume" Grid.Row="1" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="tip_air_volume" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-100000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="0" Grid.Column="1" x:Name="tavError" Text="{Binding ElementName=tbtip_air_volume,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static str:Resources.strTipHeight}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="2" Grid.Column="1" Text="{x:Static str:Resources.strConeLength}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="tbtip_length" Grid.Row="3" Grid.Column="0" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="tip_length" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="2" Grid.Column="0" x:Name="tlError" Text="{Binding ElementName=tbtip_length,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
<TextBox x:Name="tbtip_header_height" Grid.Row="3" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="tip_header_height" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="2" Grid.Column="1" x:Name="thhError" Text="{Binding ElementName=tbtip_header_height,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="{x:Static str:Resources.strConeMaxR}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="1" Text="{x:Static str:Resources.strConeMinR}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="tbtip_cone_radius_max" Grid.Row="5" Grid.Column="0" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="tip_cone_radius_max" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="4" Grid.Column="0" x:Name="tcrMaxError" Text="{Binding ElementName=tbtip_cone_radius_max,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
<TextBox x:Name="tbtip_cone_radius_min" Grid.Row="5" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="tip_cone_radius_min" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="4" Grid.Column="1" x:Name="tcrMinError" Text="{Binding ElementName=tbtip_cone_radius_min,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBlock Grid.Row="6" Grid.Column="0" Text="{x:Static str:Resources.strTipPressHeight}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="tbtip_press_height" Grid.Row="7" Grid.Column="0" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="press_tip_depth" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="6" Grid.Column="0" x:Name="tcrPressError" Text="{Binding ElementName=tbtip_press_height,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBlock Grid.Row="6" Grid.Column="1" Text="{x:Static str:Resources.strTipPressIntoText}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="tbtip_pressInto_height" Grid.Row="7" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="press_tipinto_depth" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="6" Grid.Column="1" x:Name="tcrPressIntoError" Text="{Binding ElementName=tbtip_pressInto_height,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBlock Grid.Row="6" Grid.Column="2" Text="{x:Static str:Resources.strTipPressPowerText}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="tbtip_press_Power" Grid.Row="7" Grid.Column="2" Height="30" Width="180" FontSize="16" HorizontalAlignment="Left" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="press_tip_power" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="6" Grid.Column="2" x:Name="tcrPressPowerError" Text="{Binding ElementName=tbtip_press_Power,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<CheckBox x:Name="cbFilter" Grid.Row="8" Grid.Column="0" Content="{x:Static str:Resources.strFilter}" VerticalContentAlignment="Center" FontSize="16" Margin="20 0 0 0"
|
Checked="cbFilter_Checked" Unchecked="cbFilter_Unchecked"/>
|
<CheckBox x:Name="cbLLS" Grid.Row="8" Grid.Column="1" Content="LLS" VerticalContentAlignment="Center" FontSize="16" Margin="20 0 0 0"
|
Checked="cbLLS_Checked" Unchecked="cbLLS_Unchecked"/>
|
|
<Border Grid.Row="0" Grid.Column="2" Grid.RowSpan="10" >
|
<Image x:Name="imgTips" Grid.Row="0" Source="pack://application:,,,./Assets/Consumables/Tip枪头.png"
|
Width="200" Height="180" VerticalAlignment="Top" Margin="0 40 0 0"/>
|
</Border>
|
</Grid>
|
</UserControl>
|