|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <UserControl
- x:Class="BPASmartClient.MorkS.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.MorkS.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.MorkS.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 Content="随机面条位置" Style="{StaticResource CheckBox}" IsChecked="{Binding IsNoodPositon}" Background="White"/>
-
- </StackPanel>
-
- <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
- <TextBlock
- FontSize="18"
- Foreground="{StaticResource TitleBorderColor}"
- Text="面碗位置:" />
- <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
- <CheckBox Content="随机面碗位置" Style="{StaticResource CheckBox}" IsChecked="{Binding IsBowPositon}" Background="White"/>
- <CheckBox Content="启用本地模拟功能" Style="{StaticResource CheckBox}" IsChecked="{Binding LocalSimOrder}" Background="White" Command="{Binding EnableLacalSimOrder}"/>
- </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>
|