|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806 |
- <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>
|