|
- <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="面条位置:" />
- <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding NoodleLoc}" />
- <CheckBox
- Background="White"
- Content="随机面条位置"
- IsChecked="{Binding IsNoodPositon}"
- Style="{StaticResource CheckBox}" />
-
- </StackPanel>
-
- <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
- <TextBlock
- FontSize="18"
- Foreground="{StaticResource TitleBorderColor}"
- Text="面碗位置:" />
- <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
- <CheckBox
- Background="White"
- Content="随机面碗位置"
- IsChecked="{Binding IsBowPositon}"
- Style="{StaticResource CheckBox}" />
- <CheckBox
- 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>
|