<UserControl x:Class="XHandler.View.SetTipsProperty"
|
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"
|
xmlns:localL="clr-namespace:XHandler.View.Liquids"
|
xmlns:str="clr-namespace:XHandler.Properties"
|
xmlns:ctrls="clr-namespace:XHandler.Controls"
|
mc:Ignorable="d"
|
d:DesignHeight="850" d:DesignWidth="800"
|
Style="{StaticResource UCStyle}">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="*"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="*"/>
|
</Grid.ColumnDefinitions>
|
<Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="420" Height="560">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="50"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Border Grid.Row="0" Background="{DynamicResource blueBrush}" CornerRadius="10 10 0 0" BorderThickness="0">
|
<Grid>
|
<TextBlock Text="{x:Static str:Resources.strSetting}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
|
Foreground="White" FontWeight="Bold"/>
|
<Button Content="×" HorizontalAlignment="Right" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="10 0" FontSize="28" Width="40" Height="40"
|
FontWeight="Bold" Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnCancel_Click"/>
|
</Grid>
|
</Border>
|
<Border Grid.Row="1" Background="White" CornerRadius="0 0 10 10" BorderThickness="0">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="120"/>
|
<ColumnDefinition Width="*"/>
|
<!--<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>-->
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="{x:Static str:Resources.strLabel}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 0 5" FontSize="16"/>
|
<!--<TextBox x:Name="textboxLabel" Grid.Row="0" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center"
|
VerticalAlignment="Center" Margin="10 0 30 0" Background="{DynamicResource lightGrayBrush}" BorderThickness="0" BorderBrush="Red"
|
Text="{Binding label, Mode=TwoWay}"/>-->
|
<TextBox x:Name="textboxLabel" Grid.Row="0" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Center" Background="{DynamicResource lightGrayBrush}" Margin="10 0 30 0"
|
BorderThickness="0" BorderBrush="Red">
|
<TextBox.Text>
|
<Binding Path="label" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<localL:LiquidsValidationRule ValidateType="1,6@[200]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="0" Grid.Column="2" x:Name="bdvError" Text="{Binding ElementName=textboxLabel,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 5 5 0"/>
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strBarCode}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 0 5" FontSize="16"/>
|
<!--<TextBox x:Name="textboxBarcode" Grid.Row="1" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center"
|
VerticalAlignment="Center" Margin="10 0 30 0" Background="{DynamicResource lightGrayBrush}" BorderThickness="0" BorderBrush="Red"
|
Text="{Binding barcode, Mode=TwoWay}"/>-->
|
<TextBox x:Name="textboxBarcode" Grid.Row="1" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" VerticalAlignment="Center" Background="{DynamicResource lightGrayBrush}" Margin="10 0 30 0"
|
BorderThickness="0" BorderBrush="Red">
|
<TextBox.Text>
|
<Binding Path="barcode" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<localL:LiquidsValidationRule ValidateType="1,6@[200]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="1" Grid.Column="2" x:Name="bbError" Text="{Binding ElementName=textboxBarcode,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.strTablePosition}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 0 5" FontSize="16"/>
|
<TextBox x:Name="textboxTablePosition" Grid.Row="2" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center"
|
VerticalAlignment="Center" Margin="10 0 30 0" Background="{DynamicResource lightGrayBrush}" BorderThickness="0" BorderBrush="Red"
|
Text="{Binding position}" IsEnabled="False"/>
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Text="{x:Static str:Resources.strConsumableType}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 0 5" FontSize="16"/>
|
<TextBox x:Name="textboxConsumableType" Grid.Row="3" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center"
|
VerticalAlignment="Center" Margin="10 0 30 0" Background="{DynamicResource lightGrayBrush}" BorderThickness="0" BorderBrush="Red"
|
Text="{Binding labware_type}" IsEnabled="False"/>
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="{x:Static str:Resources.strAvailableTipsSetting}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 0 5" FontSize="16"/>
|
<StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" Margin="10 0 30 0">
|
<Rectangle Fill="{DynamicResource blueBrush}" StrokeThickness="0" Width="30" Height="20"/>
|
<TextBlock Text="{x:Static str:Resources.strHasTips}" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10 0 20 0" FontSize="16"/>
|
<Rectangle Fill="White" StrokeThickness="1" Stroke="Gray" Width="30" Height="20"/>
|
<TextBlock Text="{x:Static str:Resources.strNoTips}" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10 0" FontSize="16"/>
|
</StackPanel>
|
|
<!--<CheckBox Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Content="{x:Static str:Resources.strSelectAll}" VerticalAlignment="Center"
|
Margin="50 0" VerticalContentAlignment="Center" FontSize="16"/>-->
|
|
<ctrls:WellPlate x:Name="wellPlate" Grid.Row="6" Grid.Column="0" Columns="{Binding number_column}" Rows="{Binding number_row}" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0 0 0 15"
|
Selection="{Binding validWells, Mode=TwoWay}"/>
|
|
<Button x:Name="btnOK" Grid.Row="7" Grid.Column="1" Content="{x:Static str:Resources.btnOK}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="20 0" FontSize="16" Width="80" Height="40"
|
Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnOK_Click"/>
|
|
<Button Grid.Row="7" Grid.Column="1" Content="{x:Static str:Resources.btnCancel}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0 0 120 0" FontSize="16" Width="80" Height="40"
|
Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="LightGray" Click="btnCancel_Click"/>
|
|
|
</Grid>
|
</Border>
|
</Grid>
|
</Grid>
|
</UserControl>
|