<UserControl x:Class="XHandler.View.MethodProperty.ElectroPart.CaptureElectroProperty"
|
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.ElectroPart"
|
xmlns:localRule="clr-namespace:XHandler.View.BacteriaProperty"
|
xmlns:str="clr-namespace:XHandler.Properties"
|
xmlns:ctrls="clr-namespace:XHandler.Controls"
|
mc:Ignorable="d"
|
d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="125"/>
|
<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"/>
|
|
<TextBox Grid.Row="0" Grid.Column="1" x:Name="tbxCommandLabel" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
|
Text="{Binding label, Mode=TwoWay}" IsEnabled="False"/>
|
<!--<TextBox Grid.Row="1" Grid.Column="1" x:Name="tbxCommandName" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
|
Text="{Binding name}" TextChanged="tbxCommandName_TextChanged"/>-->
|
<TextBox x:Name="tbxCommandName" Grid.Row="1" Grid.Column="1" 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>
|
<localRule:BacteriaPropertyValidationRule ValidateType="1,6@[100]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="1" Grid.Column="2" x:Name="nError" Text="{Binding ElementName=tbxCommandName,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.strElectroPhotoParams}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
|
<Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" x:Name="gridManual">
|
<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"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="125"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width=".9*"/>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strElectroPhoto}" FontSize="18" FontWeight="Bold"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strIdentification}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0" x:Name="tBoxIdentification"/>
|
<StackPanel Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Horizontal" x:Name="pnlIdentification">
|
<RadioButton x:Name="radioBtnManual" Grid.Row="2" Grid.Column="0" Content="{x:Static str:Resources.strManual}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 0 15 0" Checked="radioBtnManual_Checked"/>
|
<RadioButton x:Name="radioBtnAuto" Grid.Row="2" Grid.Column="0" Content="{x:Static str:Resources.strAuto}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5 0 15 0" Checked="radioBtnAuto_Checked"/>
|
</StackPanel>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static str:Resources.strGumLabware}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<ctrls:PromptTextBox x:Name="placeGumLabwareA" Grid.Row="2" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center"
|
Watermark="{x:Static str:Resources.strPleaseSelect}" Background="{DynamicResource lightGrayBrush}" BorderThickness="0"
|
Text="" Tag="" TextChanged="placeGumLabwareA_TextChanged" GotFocus="placeGumLabwareA_GotFocus" IsReadOnly="True"/>
|
|
</Grid>
|
</Grid>
|
</UserControl>
|