<UserControl x:Class="XHandler.View.Consumables.CentrifugalOtherSetting"
|
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="1000" d:DesignWidth="800"
|
Loaded="UserControl_Loaded">
|
<Grid IsEnabled="{Binding is_default_type, Converter={StaticResource intToEnableConvert}}">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="auto"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*"/>
|
</Grid.ColumnDefinitions>
|
|
<!--#region 移动设置 -->
|
<Border Grid.Row="1" Background="White" BorderBrush="LightGray" BorderThickness="1" CornerRadius="5" Margin="20 0">
|
<Grid>
|
<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"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width=".25*"/>
|
<ColumnDefinition Width=".25*"/>
|
<ColumnDefinition Width=".25*"/>
|
<ColumnDefinition Width=".25*"/>
|
<ColumnDefinition Width=".25*"/>
|
</Grid.ColumnDefinitions>
|
|
<!--上夹爪抓手抓板位置-->
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strUpLidOpenSet}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0" FontWeight="Bold"/>
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strGripperOpenDis}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="1" Grid.Column="1" Text="{x:Static str:Resources.strGripperCloseDis}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="{x:Static str:Resources.stringGripperPower}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<Grid Grid.Row="1" Grid.Column="3">
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="72"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="Z(mm)" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static str:Resources.stringGripperTopDisInfo}" VerticalAlignment="Center" Foreground="LightGray" HorizontalAlignment="Left" FontSize="10" Margin="0 0 0 0"/>
|
</Grid>
|
|
<!--输入框-->
|
<TextBox x:Name="txtUpgripperSpread" Grid.Row="2" Grid.Column="0" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0">
|
<TextBox.Text>
|
<Binding Path="upgripper_spread" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="2" Grid.Column="4" x:Name="xoUpgripperSpreadError" Text="{Binding ElementName=txtUpgripperSpread,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtUpgripperSqueeze" Grid.Row="2" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="upgripper_squeeze" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="2" Grid.Column="4" x:Name="youpgrippersqueezeError" Text="{Binding ElementName=txtUpgripperSqueeze,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtUpgripperPower" Grid.Row="2" Grid.Column="2" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="upgripper_power" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[0],5@[0-100]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="2" Grid.Column="4" x:Name="zoupgripperpowerError" Text="{Binding ElementName=txtUpgripperPower,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtupgripperzoffset" Grid.Row="2" Grid.Column="3" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="upgripper_zoffset" 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="4" x:Name="zoUpgripperZoffsetError" Text="{Binding ElementName=txtupgripperzoffset,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Text="{x:Static str:Resources.strDownLidOpenSet}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0" FontWeight="Bold"/>
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="{x:Static str:Resources.strGripperOpenDis}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="1" Text="{x:Static str:Resources.strGripperCloseDis}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="2" Text="{x:Static str:Resources.stringGripperPower}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<Grid Grid.Row="4" Grid.Column="3">
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="72"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="Z(mm)" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static str:Resources.stringGripperBottomDisInfo}" VerticalAlignment="Center" Foreground="LightGray" HorizontalAlignment="Left" FontSize="10" Margin="0 0 0 0"/>
|
</Grid>
|
|
<!--输入框-->
|
<TextBox x:Name="txtDowngripperSpread" 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="downgripper_spread" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="5" Grid.Column="4" x:Name="xodowngripperSpreadError" Text="{Binding ElementName=txtDowngripperSpread,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtDowngripperSqueeze" 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="downgripper_squeeze" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="5" Grid.Column="4" x:Name="yodowngrippersqueezeError" Text="{Binding ElementName=txtDowngripperSqueeze,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtDowngripperPower" Grid.Row="5" Grid.Column="2" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="downgripper_power" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[0],5@[0-100]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="5" Grid.Column="4" x:Name="zodowngripperpowerError" Text="{Binding ElementName=txtDowngripperPower,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtDowngripperzoffset" Grid.Row="5" Grid.Column="3" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="downgripper_zoffset" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="5" Grid.Column="4" x:Name="zoDowngripperZoffsetError" Text="{Binding ElementName=txtDowngripperzoffset,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.strMoveSetting}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0" FontWeight="Bold"/>
|
<TextBlock Grid.Row="7" Grid.Column="0" Text="{x:Static str:Resources.strGripperOpenDis}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="7" Grid.Column="1" Text="{x:Static str:Resources.strGripperCloseDis}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<Grid Grid.Row="7" Grid.Column="2">
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="72"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="Z(mm)" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="{x:Static str:Resources.stringGripperTopDisInfo}" VerticalAlignment="Center" Foreground="LightGray" HorizontalAlignment="Left" FontSize="10" Margin="0 0 0 0"/>
|
</Grid>
|
|
<TextBox x:Name="txtgripper_spread" Grid.Row="8" Grid.Column="0" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="gripper_spread" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="8" Grid.Column="4" x:Name="gsdError" Text="{Binding ElementName=txtgripper_spread,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtgripper_squeeze" Grid.Row="8" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="gripper_squeeze" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="8" Grid.Column="4" x:Name="gseError" Text="{Binding ElementName=txtgripper_squeeze,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtgripper_z_offset" Grid.Row="8" Grid.Column="2" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="gripper_z_offset" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[1],5@[0-1000]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="8" Grid.Column="4" x:Name="gsegripper_z_offsetError" Text="{Binding ElementName=txtgripper_z_offset,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBlock Grid.Row="9" Grid.Column="0" Text="{x:Static str:Resources.strGripperSpeedB}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="9" Grid.Column="1" Text="{x:Static str:Resources.stringGripperPower}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="txtgripperSpeed" Grid.Row="10" Grid.Column="0" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="gripper_speed" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[0],5@[0-100]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="10" Grid.Column="2" x:Name="gspeedError" Text="{Binding ElementName=txtgripperSpeed,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
<TextBox x:Name="txtgripperPower" Grid.Row="10" Grid.Column="1" Height="30" Width="200" HorizontalAlignment="Left" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="gripper_power" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:ConsumablesValidationRule ValidateType="1,4@[0],5@[0-100]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<!--<TextBlock Grid.Row="10" Grid.Column="2" x:Name="gpowerError" Text="{Binding ElementName=txtgripperPower,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>-->
|
|
</Grid>
|
</Border>
|
<!--#endregion-->
|
</Grid>
|
</UserControl>
|