<UserControl x:Class="XHandler.View.Consumables.CircularDishSetting"
|
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"
|
xmlns:ctrls="clr-namespace:XHandler.Controls"
|
mc:Ignorable="d"
|
xmlns:colorpicker="clr-namespace:XHandler.View.ColorPicker"
|
d:DesignHeight="2000" d:DesignWidth="800" SnapsToDevicePixels="True">
|
<UserControl.Resources>
|
|
</UserControl.Resources>
|
|
<Grid IsEnabled="{Binding is_default_type, Converter={StaticResource intToEnableConvert}}">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="auto"/>
|
</Grid.RowDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strConsumableColor}" VerticalAlignment="Center"
|
FontSize="16" Margin="20 0 0 0" FontWeight="Bold"/>
|
<Grid Grid.Row="1">
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width=".25*"/>
|
<ColumnDefinition Width=".25*"/>
|
<ColumnDefinition Width="*"/>
|
</Grid.ColumnDefinitions>
|
|
<!--耗材面颜色-->
|
<TextBlock Grid.Column="0" Text="{x:Static str:Resources.strConsumableColor}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"
|
HorizontalAlignment="Left"/>
|
|
<colorpicker:ColorPickerBtn x:Name="btnTopColor" Grid.Column="1" Height="30" VerticalAlignment="Center"
|
Margin="20 0 0 0" SelectedColorChangedEvent="btnTopColor_SelectedColorChangedEvent"/>
|
|
<Image Grid.Column="2" Source="pack://application:,,,./Assets/Consumables/CircularDish.jpg" Width="250" Height="250"
|
HorizontalAlignment="Left" Visibility="Collapsed"/>
|
</Grid>
|
|
<Grid Grid.Row="2">
|
<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"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strLabwareSpecs}" VerticalAlignment="Center"
|
FontSize="16" Margin="20 0 0 0" FontWeight="Bold"/>
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strDivision}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="1" Grid.Column="1" Text="{x:Static str:Resources.strSpecsDiameter}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="{x:Static str:Resources.strSpecsHeight}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<ComboBox x:Name="cbDivision" Grid.Row="2" Grid.Column="0" Height="30" BorderThickness="0" Background="{DynamicResource lightGrayBrush}" Margin="20 0" VerticalAlignment="Top"
|
SelectionChanged="cbDivision_SelectionChanged" IsEditable="False"/>
|
<ComboBox x:Name="cbSpecsDiameter" Grid.Row="2" Grid.Column="1" Height="30" BorderThickness="0" Background="{DynamicResource lightGrayBrush}" Margin="20 0" VerticalAlignment="Top"
|
SelectionChanged="cbSpecsDiameter_SelectionChanged" IsEditable="False"/>
|
<ComboBox x:Name="cbSpecsHeight" Grid.Row="2" Grid.Column="2" Height="30" BorderThickness="0" Background="{DynamicResource lightGrayBrush}" Margin="20 0" VerticalAlignment="Top"
|
SelectionChanged="cbSpecsHeight_SelectionChanged" IsEditable="False"/>
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Text="{x:Static str:Resources.strLabwareVolume}" VerticalAlignment="Center"
|
FontSize="16" Margin="20 0 0 0" FontWeight="Bold"/>
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="{x:Static str:Resources.strInnerBottomDiameter}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="1" Text="{x:Static str:Resources.strOuterBottomDiameter}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="2" Text="{x:Static str:Resources.strInnerBottomHeight}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="3" Text="{x:Static str:Resources.strOuterBottomHeight}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBox x:Name="tbInnerBottomDiameter" 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="labware_round_bottom_indiameter" 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="tbInnerErrorWellVolume" Text="{Binding ElementName=tbInnerBottomDiameter,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBox x:Name="tbOuterBottomDiameter" 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="labware_round_bottom_outdiameter" 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="tbOuterErrorWellVolume" Text="{Binding ElementName=tbOuterBottomDiameter,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBox x:Name="tbInnerBottomHeight" 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="labware_round_bottom_inheight" 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="2" x:Name="tbInnerHErrorWellVolume" Text="{Binding ElementName=tbInnerBottomHeight,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBox x:Name="tbOuterBottomHeight" 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="labware_round_bottom_outheight" 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="3" x:Name="tbOuterHErrorWellVolume" Text="{Binding ElementName=tbOuterBottomHeight,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.strInnerLidDiameter}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="6" Grid.Column="1" Text="{x:Static str:Resources.strOuterLidDiameter}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="6" Grid.Column="2" Text="{x:Static str:Resources.strLidHeight}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
<TextBlock Grid.Row="6" Grid.Column="3" Text="{x:Static str:Resources.strTotalHeight}" VerticalAlignment="Center" FontSize="16" Margin="20 0 0 0"/>
|
|
<TextBox x:Name="tbInnerLidDiameter" 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="labware_round_lid_indiameter" 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="tbInnerLErrorWellVolume" Text="{Binding ElementName=tbInnerLidDiameter,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBox x:Name="tbOuterLidDiameter" 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="labware_round_lid_outdiameter" 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="tbOuterLErrorWellVolume" Text="{Binding ElementName=tbOuterLidDiameter,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBox x:Name="tbLidHeight" Grid.Row="7" Grid.Column="2" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="labware_round_lid_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="6" Grid.Column="2" x:Name="tbLHErrorWellVolume" Text="{Binding ElementName=tbLidHeight,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBox x:Name="tbTotalHeight" Grid.Row="7" Grid.Column="3" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Top" Background="{DynamicResource lightGrayBrush}" Margin="20 0"
|
BorderThickness="0" >
|
<TextBox.Text>
|
<Binding Path="labware_round_totalheight" 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="3" x:Name="tbTHErrorWellVolume" Text="{Binding ElementName=tbTotalHeight,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<Image Grid.Row="8" Grid.Column="3" Source="pack://application:,,,./Assets/提示图标.png" Width="24" Height="24" HorizontalAlignment="Left" Margin="20 0"/>
|
<TextBlock Grid.Row="8" Grid.Column="3" Text="{x:Static str:Resources.strTotalHeightWithLid}" FontSize="16" Foreground="Gray"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="50 0 0 0"/>
|
|
</Grid>
|
</Grid>
|
</UserControl>
|