|
- <UserControl x:Class="BPASmartClient.MorkF.View.MaterialCalibration"
- 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:BPASmartClient.MorkF.View"
- xmlns:vm="clr-namespace:BPASmartClient.MorkF.ViewModel"
- x:Name="菜品库校验"
- mc:Ignorable="d"
- d:DesignHeight="1000" d:DesignWidth="1300">
- <UserControl.DataContext>
- <vm:MaterialCalibrationViewModel/>
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
-
- <!--#region 用户输入框样式-->
- <Style x:Key="UserTextBoxStyle" TargetType="TextBox">
- <!--<Setter Property="Background" Value="Transparent" />-->
- <Setter Property="CaretBrush" Value="#009DFF" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="TextBox">
- <Border
- x:Name="border"
-
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="5"
- SnapsToDevicePixels="true">
- <Grid>
- <TextBlock
- Name="markText"
- Grid.Column="1"
- Margin="10,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="{TemplateBinding FontSize}"
- Foreground="#a2c2e8"
- Text="数据有效值为1-100"
- Visibility="Collapsed" />
-
-
- <ScrollViewer
- x:Name="PART_ContentHost"
- Grid.Column="1"
- MinHeight="20"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
-
- </Border>
-
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Opacity" Value="0.56" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
- </Trigger>
- <DataTrigger Binding="{Binding Path=Text, RelativeSource={RelativeSource Mode=self}}" Value="">
- <Setter TargetName="markText" Property="Visibility" Value="Visible" />
- </DataTrigger>
- </ControlTemplate.Triggers>
-
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- </ResourceDictionary>
- </UserControl.Resources>
-
- <Grid>
- <ScrollViewer>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="150" ></RowDefinition>
- </Grid.RowDefinitions>
- <GroupBox Grid.Row="0" Header="菜品库第一层" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
- <Grid Height="150">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <WrapPanel Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置1" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionOne}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding OneX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding OneY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置2" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwo}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwoX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwoY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置3" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionThree}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding ThreeX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding ThreeY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
-
- <WrapPanel Grid.Row="1" Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置4" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFour}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding FourX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding FourY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置5" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFive}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding FiveX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding FiveY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置6" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSix}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding SixX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding SixY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
- <WrapPanel Grid.Row="2" Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置7" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSeven}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding SevenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding SevenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置8" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionEight}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding EightX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding EightY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置9" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionNine}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding NineX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding NineY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
- </Grid>
- </GroupBox>
-
- <GroupBox Grid.Row="1" Header="菜品库第二层" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
- <Grid Height="150">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <WrapPanel Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置10" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置11" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionEleven}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding ElevenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding ElevenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置12" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwelve}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwelveX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwelveY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
-
- <WrapPanel Grid.Row="1" Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置13" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionThirteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding ThirteenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding ThirteenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置14" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFourteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding FourteenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding FourteenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置15" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFifteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding FifteenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding FifteenY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
- <WrapPanel Grid.Row="2" Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置16" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSixteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding SixteenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding SixteenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置17" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSeventeen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding SeventeenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding SeventeenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置18" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionEighteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding EighteenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding EighteenY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
- </Grid>
- </GroupBox>
-
- <GroupBox Grid.Row="2" Header="菜品库第三层" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
- <Grid Height="150">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <WrapPanel Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置19" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionNineteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding NineteenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding NineteenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置20" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwenty}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentyX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwentyY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置21" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyOne}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentyOneX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwentyOneY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
-
- <WrapPanel Grid.Row="1" Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置22" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyTwo}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentyTwoX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwentyTwoY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置23" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyThree}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentyThreeX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwentyThreeY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置24" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyFour}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentyFourX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwentyFourY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
- <WrapPanel Grid.Row="2" Orientation="Horizontal">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置25" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyFive}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentyFiveX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwentyFiveY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置26" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentySix}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentySixX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding SeventeenY}" Width="100"/>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="位置27" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentySeven}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding TwentySevenX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding TwentySevenY}" Width="100"/>
- </Grid>
- </Grid>
- </WrapPanel>
- </Grid>
- </GroupBox>
- <GroupBox Grid.Row="3" Header="菜品库特殊点位" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <WrapPanel>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="菜品库高度测量" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialHeight}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <WrapPanel>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding MaterialHeightX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding MaterialHeightY}" Width="100"/>
- </WrapPanel>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="炒锅1菜品交互位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFrying1}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <WrapPanel>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding Frying1X}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding Frying1Y}" Width="100"/>
- </WrapPanel>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="炒锅2菜品交互位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFrying2}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <WrapPanel>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding Frying2X}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="{Binding Frying2Y}" Width="100"/>
- </WrapPanel>
- </Grid>
- </Grid>
- </WrapPanel>
- <WrapPanel Grid.Row="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="第一层菜品库出菜位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialOne}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <WrapPanel>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding MaterialOneX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="0" IsEnabled="False" Width="100"/>
- </WrapPanel>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="第二层菜品库出菜位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialTwo}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <WrapPanel>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding MaterialTwoX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="0" IsEnabled="False" Width="100"/>
- </WrapPanel>
- </Grid>
- </Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <RadioButton Content="第三层菜品库出菜位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialThree}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
- <Grid Grid.Row="1">
- <WrapPanel>
- <TextBlock Text="x轴:" Margin="10,0"/>
- <TextBox Grid.Column="1" Text="{Binding MaterialThreeX}" Width="100"/>
- <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
- <TextBox Grid.Column="3" Text="0" IsEnabled="False" Width="100"/>
- </WrapPanel>
- </Grid>
- </Grid>
- </WrapPanel>
- </Grid>
- </GroupBox>
- <GroupBox Grid.Row="4" Header="操作" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <WrapPanel>
- <Button Content="菜品库初始化" Margin="10,0,5,0" Command="{Binding FoodLibInit}"/>
- <Button Content="电磁阀启动" Margin="10,0,5,0" Command="{Binding StartElectromagnetism}"/>
- <Button Content="电磁阀停止" Margin="10,0,5,0" Command="{Binding StopElectromagnetism}"/>
- <Button Content="夹爪伸出" Command="{Binding PawTurnFront}" Margin="5,0" Cursor="Hand"/>
- <Button Content="夹爪收缩" Command="{Binding PawTurnBack}" Margin="5,0" Cursor="Hand"/>
- <RadioButton Content="位置1" Margin="5,0" IsEnabled="True" IsChecked="{Binding PawPositon1}" Command="{Binding PawToPoint1}" GroupName="PawTurn"/>
- <RadioButton Content="位置2" Margin="5,0" IsEnabled="True" IsChecked="{Binding PawPositon2}" Command="{Binding PawToPoint2}" GroupName="PawTurn"/>
- <RadioButton Content="位置3" Margin="5,0 " IsEnabled="True" IsChecked="{Binding PawPositon3}" Command="{Binding PawToPoint3}" GroupName="PawTurn"/>
- </WrapPanel>
- <WrapPanel Grid.Row="1">
- <Button Content="感应器1测距" Margin="5,0" Command="{Binding GetDistance_1}" Cursor="Hand"/>
- <TextBox Grid.Column="1" Text="{Binding Distance_1}" Width="100"/>
- <Button Content="感应器2测距" Margin="5,0" Command="{Binding GetDistance_2}"/>
- <TextBox Grid.Column="1" Text="{Binding Distance_2}" Width="100"/>
- <Button Content="感应器3测距" Margin="5,0" Command="{Binding GetDistance_3}"/>
- <TextBox Grid.Column="1" Text="{Binding Distance_3}" Width="100"/>
- </WrapPanel>
- <WrapPanel Grid.Row="2">
- <TextBlock Text="移动系数:"></TextBlock>
- <TextBox
- Style="{DynamicResource UserTextBoxStyle}"
- Foreground="#a2c2e8" Text="{Binding Str}"/>
- <TextBlock Text="移动方式:" Margin="50,0,0,0"></TextBlock>
- <RadioButton Content="上" Margin="5,0" IsChecked="{Binding Up}" GroupName="ArmRun"/>
- <RadioButton Content="下" Margin="5,0" IsChecked="{Binding Down}" GroupName="ArmRun"/>
- <RadioButton Content="左" Margin="5,0 " IsChecked="{Binding Left}" GroupName="ArmRun"/>
- <RadioButton Content="右" Margin="5,0 " IsChecked="{Binding Right}" GroupName="ArmRun"/>
- <RadioButton Content="定点" Margin="5,0 " IsChecked="{Binding Point}" GroupName="ArmRun"/>
- <Button Content="移动" Command="{Binding SetNowPosition}"/>
- </WrapPanel>
- <WrapPanel Grid.Row="3" Cursor="">
- <Button Content="自动计算" Margin="20,0,50,0" Command="{Binding AutoCalculation}"/>
- <Button Content="保存" Margin="20,0,50,0" Command="{Binding SaveCoordinate}"/>
- <Button Content="读取" Command="{Binding ReadCoordinate}"/>
- </WrapPanel>
- </Grid>
- </GroupBox>
- </Grid>
- </ScrollViewer>
- </Grid>
- </UserControl>
|