<UserControl x:Class="XHandler.View.MethodProperty.SwitchLidProperty"
|
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.MethodProperty"
|
xmlns:str="clr-namespace:XHandler.Properties"
|
xmlns:ctrls="clr-namespace:XHandler.Controls"
|
xmlns:valide="clr-namespace:XHandler.View.Consumables"
|
mc:Ignorable="d"
|
d:DesignHeight="950" d:DesignWidth="800" Loaded="UserControl_Loaded">
|
<ScrollViewer>
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="440"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid x:Name="grid" Grid.Row="0">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="30"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="120"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width=".9*"/>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strCommandTag}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strCommandName}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static str:Resources.strArm}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="3" Grid.Column="0" Text="{x:Static str:Resources.strTablePosition}" FontSize="16"
|
VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 5 15 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="{x:Static str:Resources.strWellPosition}" FontSize="16"
|
VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 5 15 0"/>
|
<TextBlock Grid.Row="5" Grid.Column="1" Text="{x:Static str:Resources.strCommentSelectPlate}" FontSize="16"
|
VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0 5 15 0" Foreground="Gray"/>
|
|
<TextBox Grid.Row="0" Grid.Column="1" x:Name="tbxCommandLabel" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
BorderThickness="0" Text="{Binding label, Mode=TwoWay}" TextChanged="tbxCommandLabel_TextChanged" IsEnabled="False"/>
|
<TextBox Grid.Row="1" Grid.Column="1" x:Name="tbxCommandName" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
BorderThickness="0" TextChanged="tbxCommandName_TextChanged">
|
<TextBox.Text>
|
<Binding Path="name" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:AspirateValidationRule ValidateType="tbxCommandName"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding ElementName=tbxCommandName,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
<ComboBox x:Name="cbArm" Grid.Row="2" Grid.Column="1" Height="30" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
|
DisplayMemberPath="device_arm_name" SelectedValuePath="device_arm_id" SelectionChanged="cbArm_SelectionChanged" IsEditable="False"/>
|
<ComboBox x:Name="comboboxTablePos" Grid.Row="3" Grid.Column="1" Height="30" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}" BorderThickness="0"
|
SelectionChanged="comboboxTablePos_SelectionChanged" IsEditable="False"/>
|
<ctrls:PromptTextBox Grid.Row="4" Grid.Column="1" x:Name="tbxWellPositionTips" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0"
|
Background="{DynamicResource lightGrayBrush}" Watermark="{x:Static str:Resources.strWellPositionTips}">
|
<ctrls:PromptTextBox.Text>
|
<Binding Path="wellarray" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:AspirateValidationRule ValidateType="tbxWellPositionTips"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</ctrls:PromptTextBox.Text>
|
</ctrls:PromptTextBox>
|
<TextBlock Grid.Row="4" Grid.RowSpan="3" x:Name="tbkErrorWellPosition" Grid.Column="2" Text="{Binding ElementName=tbxWellPositionTips,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
<!--目前不支持选择方向-->
|
<StackPanel Grid.Row="4" Grid.Column="2" Orientation="Horizontal" Visibility="Collapsed">
|
<RadioButton Content="{x:Static str:Resources.strHorizontal}" VerticalAlignment="Center" Margin="20 0"/>
|
<RadioButton Content="{x:Static str:Resources.strVertical}" VerticalAlignment="Center"/>
|
</StackPanel>
|
<ctrls:WellPlate x:Name="wellPlate" Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="0 5"
|
Selection="{Binding wellarray, Mode=TwoWay}" MouseLeftButtonDown="wellPlate_MouseLeftButtonDown"/>
|
|
</Grid>
|
<Grid Grid.Row="1">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="120"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strSwitchLidInfo}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<StackPanel Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Horizontal">
|
<RadioButton x:Name="radioBtnSwitchOpen" Grid.Row="2" Grid.Column="0" Content="{x:Static str:Resources.strSwitchLidOpen}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 0 15 0" Checked="radioBtnSwitchOpen_Checked"/>
|
<RadioButton x:Name="radioBtnSwitchClose" Grid.Row="2" Grid.Column="0" Content="{x:Static str:Resources.strSwitchLidClose}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 0 15 0" Checked="radioBtnSwitchClose_Checked"/>
|
</StackPanel>
|
</Grid>
|
<Grid Grid.Row="2" x:Name="gdSwitchSettingsList" VerticalAlignment="Top">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="*"/>
|
<RowDefinition Height="80"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="120"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strNumOfCircleTransfer}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 10 0"/>
|
<TextBox x:Name="tbxNumOfCircleTransfer" Grid.Row="0" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
BorderThickness="0" TextChanged="tbxNumOfCircleTransfer_TextChanged">
|
<TextBox.Text>
|
<Binding Path="numOfCircle" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<valide:ConsumablesValidationRule ValidateType="1,4@[2],5@[0-100]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="2" x:Name="gnumError" Text="{Binding ElementName=tbxNumOfCircleTransfer,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strSpeedOfCircleTransfer}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 10 0"/>
|
<TextBox x:Name="tbxSpeedOfCircleTransfer" Grid.Row="1" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
BorderThickness="0" TextChanged="tbxSpeedOfCircleTransfer_TextChanged">
|
<TextBox.Text>
|
<Binding Path="switchSpeed" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<valide:ConsumablesValidationRule ValidateType="1,4@[0],5@[0-100]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" x:Name="gseError" Text="{Binding ElementName=tbxSpeedOfCircleTransfer,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
</Grid>
|
</Grid>
|
</ScrollViewer>
|
</UserControl>
|