<Window x:Class="XHandler.View.ControlPipetteGun"
|
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:str="clr-namespace:XHandler.Properties"
|
xmlns:ctrls="clr-namespace:XHandler.Controls"
|
mc:Ignorable="d"
|
Height="750" Width="700" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF"
|
Loaded="ControlPipetteGun_Loaded" Title="{x:Static str:Resources.btnControlPipetteGun}" >
|
<Grid >
|
<Border Background="{DynamicResource blueBrush}" CornerRadius="10 10 10 10" BorderThickness="2" BorderBrush="{DynamicResource blueBrush}">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="710"/>
|
</Grid.RowDefinitions>
|
<Grid Grid.Row="0" >
|
<Border Grid.Row="0" Background="{DynamicResource blueBrush}" CornerRadius="10 10 0 0" BorderThickness="0">
|
<Grid>
|
<TextBlock Text="{x:Static str:Resources.btnControlPipetteGun}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
|
Foreground="White" FontWeight="Bold"/>
|
<Button Content="×" x:Name="btnClose" 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}" Visibility="Visible" Click="btnClose_Click"/>
|
</Grid>
|
</Border>
|
</Grid>
|
|
|
<Grid Grid.Row="1" Background="White">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="600"></RowDefinition>
|
<RowDefinition Height="110"></RowDefinition>
|
</Grid.RowDefinitions>
|
|
<!--#region 5行* 5列 -->
|
<Grid Grid.Row="0">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="120"/>
|
<RowDefinition Height="120"/>
|
<RowDefinition Height="120"/>
|
<RowDefinition Height="120"/>
|
<!--<RowDefinition Height="120"/>-->
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="150"/>
|
<ColumnDefinition Width="200"/>
|
<ColumnDefinition Width="80"/>
|
<ColumnDefinition Width="130"/>
|
<ColumnDefinition Width="130"/>
|
</Grid.ColumnDefinitions>
|
|
<!--#region X-轴偏移量 -->
|
<Grid Grid.Row="0" Grid.Column="0">
|
<TextBlock Text="X-轴偏移量" VerticalAlignment="Center" Margin="0" FontSize="20" HorizontalAlignment="Right"/>
|
</Grid>
|
<Grid Grid.Row="0" Grid.Column="1" Margin="15 0 0 0">
|
<TextBox x:Name="tBoxXOffset" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
InputMethod.IsInputMethodEnabled="False" PreviewTextInput="tBoxPreviewTextInput" LostFocus="tBoxLostFocus" CommandManager.PreviewCanExecute="tBoxPreviewPreviewCanExecute"/>
|
</Grid>
|
<Grid Grid.Row="0" Grid.Column="2" Margin="15 0 0 0">
|
<TextBlock Text="mm" VerticalAlignment="Center" Margin="0" FontSize="20" />
|
</Grid>
|
<Grid Grid.Row="0" Grid.Column="3">
|
<Button x:Name="btnLeft" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnLeft_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelLeft.png" />
|
</Button>
|
</Grid>
|
<Grid Grid.Row="0" Grid.Column="4">
|
<Button x:Name="btnRight" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnRight_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelRight.png" />
|
</Button>
|
</Grid>
|
<!--#endregion-->
|
|
<!--#region Y-轴偏移量 -->
|
<Grid Grid.Row="1" Grid.Column="0">
|
<TextBlock Text="Y-轴偏移量" VerticalAlignment="Center" Margin="0" FontSize="20" HorizontalAlignment="Right"/>
|
</Grid>
|
<Grid Grid.Row="1" Grid.Column="1" Margin="15 0 0 0">
|
<TextBox x:Name="tBoxYOffset" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
InputMethod.IsInputMethodEnabled="False" PreviewTextInput="tBoxPreviewTextInput" LostFocus="tBoxLostFocus" CommandManager.PreviewCanExecute="tBoxPreviewPreviewCanExecute"/>
|
</Grid>
|
<Grid Grid.Row="1" Grid.Column="2" Margin="15 0 0 0">
|
<TextBlock Text="mm" VerticalAlignment="Center" Margin="0" FontSize="20" />
|
</Grid>
|
<Grid Grid.Row="1" Grid.Column="3">
|
<Button x:Name="btnFwd" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnFwd_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelFwd.png" />
|
</Button>
|
</Grid>
|
<Grid Grid.Row="1" Grid.Column="4">
|
<Button x:Name="btnBack" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnBack_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelBack.png" />
|
</Button>
|
</Grid>
|
<!--#endregion-->
|
|
<!--#region Z-轴偏移量 -->
|
<Grid Grid.Row="2" Grid.Column="0">
|
<TextBlock Text="Z-轴偏移量" VerticalAlignment="Center" Margin="0,0,0,0" FontSize="20" HorizontalAlignment="Right" x:Name="tbkArmZTxt"/>
|
|
</Grid>
|
<Grid Grid.Row="2" Grid.Column="1" Margin="15 0 0 0">
|
<TextBox x:Name="tBoxZOffset" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
InputMethod.IsInputMethodEnabled="False" PreviewTextInput="tBoxPreviewTextInput" LostFocus="tBoxLostFocus" CommandManager.PreviewCanExecute="tBoxPreviewPreviewCanExecute"/>
|
<ComboBox x:Name="cbxArmZ" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Bottom" SelectedValuePath="device_arm_id" DisplayMemberPath="device_arm_name" Width="90" Visibility="Collapsed"></ComboBox>
|
</Grid>
|
<Grid Grid.Row="2" Grid.Column="2" Margin="15 0 0 0">
|
<TextBlock Text="mm" VerticalAlignment="Center" Margin="0" FontSize="20" />
|
</Grid>
|
<Grid Grid.Row="2" Grid.Column="3">
|
<Button x:Name="btnUp" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnUp_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelUp.png" />
|
</Button>
|
</Grid>
|
<Grid Grid.Row="2" Grid.Column="4">
|
<Button x:Name="btnDown" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnDown_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelDown.png" />
|
</Button>
|
</Grid>
|
<!--#endregion-->
|
|
<!--#region 移液量 -->
|
<Grid Grid.Row="3" Grid.Column="0">
|
<TextBlock Text="移液量" VerticalAlignment="Center" Margin="0" FontSize="20" HorizontalAlignment="Right"/>
|
</Grid>
|
<Grid Grid.Row="3" Grid.Column="1" Margin="15 0 0 0">
|
<TextBox x:Name="tBoxPipetteOffset" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
InputMethod.IsInputMethodEnabled="False" PreviewTextInput="tBoxPreviewTextInput" LostFocus="tBoxLostFocus" CommandManager.PreviewCanExecute="tBoxPreviewPreviewCanExecute"/>
|
</Grid>
|
<Grid Grid.Row="3" Grid.Column="2" Margin="15 0 0 0">
|
<TextBlock Text="ul" VerticalAlignment="Center" Margin="0" FontSize="20" />
|
</Grid>
|
<Grid Grid.Row="3" Grid.Column="3">
|
<Button x:Name="btnAspirate" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnAspirate_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelAspirate.png" />
|
</Button>
|
</Grid>
|
<Grid Grid.Row="3" Grid.Column="4">
|
<Button x:Name="btnDispense" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
BorderThickness="0" Click="btnDispense_Click" FontSize="16" >
|
<Image Stretch="Fill" Source="/Assets/Control/Chanel/ChanelDispense.png" />
|
</Button>
|
</Grid>
|
<!--#endregion-->
|
|
</Grid>
|
<!--#endregion-->
|
|
<!--#region 最下面按钮 -->
|
<Grid Grid.Row="1">
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0">
|
<Button x:Name="btnLoadTip" Content="安装Tip" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
Background="{DynamicResource blueBrush}" BorderThickness="0" Click="btnLoadTip_Click" FontSize="16" />
|
</Grid>
|
|
<Grid Grid.Column="1">
|
<Button x:Name="btnUnLoadTip" Content="卸载Tip" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
Background="{DynamicResource blueBrush}" BorderThickness="0" Click="btnUnLoadTip_Click" FontSize="16" />
|
</Grid>
|
|
<Grid Grid.Column="2">
|
<Button x:Name="btnCancel" Content="取消" HorizontalAlignment="Center" Height="50" Width="90" Foreground="White" Style="{DynamicResource BlueButtonStyle}"
|
Background="{DynamicResource blueBrush}" BorderThickness="0" Click="btnCancel_Click" FontSize="16" />
|
</Grid>
|
</Grid>
|
<!--#endregion-->
|
</Grid>
|
</Grid>
|
</Border>
|
</Grid>
|
</Window>
|