|
- <UserControl
- x:Class="BPASmartClient.MorkMV1.View.Debug"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.MorkMV1.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.MorkMV1.ViewModel"
- Name="调试界面"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:DebugViewModel />
- </UserControl.DataContext>
-
- <UserControl.Resources>
- <Style x:Key="TextboxStyle" TargetType="TextBox">
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
- <Setter Property="Width" Value="150" />
- <Setter Property="BorderBrush" Value="{StaticResource TitleBorderColor}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="CaretBrush" Value="Aqua" />
- </Style>
- <Style x:Key="CheckBox" TargetType="CheckBox">
- <Setter Property="Foreground" Value="Aqua" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Margin" Value="10,0" />
- <Setter Property="IsChecked" Value="False" />
- </Style>
- </UserControl.Resources>
-
- <Grid Margin="20">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <StackPanel>
- <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
- <TextBlock
- FontSize="18"
- Foreground="{StaticResource TitleBorderColor}"
- Text="素材位置:" />
- <CheckBox
- VerticalContentAlignment="Center"
- Background="White"
- Content="1"
- IsChecked="{Binding NoodleLoc[0]}"
- Style="{StaticResource CheckBox}" />
- <CheckBox
- VerticalContentAlignment="Center"
- Background="White"
- Content="2"
- IsChecked="{Binding NoodleLoc[1]}"
- Style="{StaticResource CheckBox}" />
- <CheckBox
- VerticalContentAlignment="Center"
- Background="White"
- Content="3"
- IsChecked="{Binding NoodleLoc[2]}"
- Style="{StaticResource CheckBox}" />
- <CheckBox
- VerticalContentAlignment="Center"
- Background="White"
- Content="4"
- IsChecked="{Binding NoodleLoc[3]}"
- Style="{StaticResource CheckBox}" />
- <CheckBox
- VerticalContentAlignment="Center"
- Background="White"
- Content="5"
- IsChecked="{Binding NoodleLoc[4]}"
- Style="{StaticResource CheckBox}" />
- <CheckBox
- Margin="20,0"
- VerticalContentAlignment="Center"
- Background="White"
- Content="随机素材位置"
- IsChecked="{Binding IsNoodPositon}"
- Style="{StaticResource CheckBox}" />
- <TextBlock
- FontSize="18"
- Foreground="{StaticResource TitleBorderColor}"
- Text="素材份量:" />
- <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding MaterialCount}" />
- </StackPanel>
-
- <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
- <TextBlock
- FontSize="18"
- Foreground="{StaticResource TitleBorderColor}"
- Text="面碗位置:" />
- <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
- <CheckBox
- VerticalContentAlignment="Center"
- Background="White"
- Content="随机面碗位置"
- IsChecked="{Binding IsBowPositon}"
- Style="{StaticResource CheckBox}" />
- <CheckBox
- VerticalContentAlignment="Center"
- Background="White"
- Command="{Binding EnableLacalSimOrder}"
- Content="启用本地模拟功能"
- IsChecked="{Binding LocalSimOrder}"
- Style="{StaticResource CheckBox}" />
- </StackPanel>
-
- <StackPanel Orientation="Horizontal">
- <Button
- Grid.Row="0"
- Width="170"
- HorizontalAlignment="Left"
- Command="{Binding SimOrderRandomCommand}"
- Content="启动随机模拟订单"
- Style="{StaticResource ButtonStyle}"
- Visibility="{Binding VisibilitySimOrder}" />
- <Button
- Grid.Row="0"
- Width="170"
- HorizontalAlignment="Left"
- Command="{Binding SimOrderRandomCloseCommand}"
- Content="关闭随机模拟订单"
- Style="{StaticResource ButtonStyle}"
- Visibility="{Binding VisibilitySimOrder}" />
- <Button
- Grid.Row="0"
- Width="130"
- HorizontalAlignment="Left"
- Command="{Binding SimOrderCommand}"
- Content="模拟订单"
- Style="{StaticResource ButtonStyle}"
- Visibility="{Binding VisibilitySimOrder}" />
- <Button
- Grid.Row="0"
- Width="120"
- HorizontalAlignment="Left"
- Command="{Binding InitCommand}"
- Content="初始化设备"
- Style="{StaticResource ButtonStyle}" />
- </StackPanel>
- </StackPanel>
-
-
-
- </Grid>
- </UserControl>
|