终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

75 lines
2.8 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkS.View.Debug"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkS.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.MorkS.ViewModel"
  9. Name="调试界面"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. mc:Ignorable="d">
  13. <UserControl.DataContext>
  14. <vm:DebugViewModel />
  15. </UserControl.DataContext>
  16. <UserControl.Resources>
  17. <Style x:Key="TextboxStyle" TargetType="TextBox">
  18. <Setter Property="FontSize" Value="18" />
  19. <Setter Property="Background" Value="Transparent" />
  20. <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
  21. <Setter Property="Width" Value="150" />
  22. <Setter Property="BorderBrush" Value="{StaticResource TitleBorderColor}" />
  23. <Setter Property="BorderThickness" Value="1" />
  24. <Setter Property="CaretBrush" Value="Aqua" />
  25. </Style>
  26. </UserControl.Resources>
  27. <Grid Margin="20">
  28. <Grid.RowDefinitions>
  29. <RowDefinition />
  30. <RowDefinition />
  31. </Grid.RowDefinitions>
  32. <StackPanel>
  33. <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
  34. <TextBlock
  35. FontSize="18"
  36. Foreground="{StaticResource TitleBorderColor}"
  37. Text="面条位置:" />
  38. <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding NoodleLoc}" />
  39. </StackPanel>
  40. <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
  41. <TextBlock
  42. FontSize="18"
  43. Foreground="{StaticResource TitleBorderColor}"
  44. Text="面碗位置:" />
  45. <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
  46. </StackPanel>
  47. <StackPanel Orientation="Horizontal">
  48. <Button
  49. Grid.Row="0"
  50. Width="130"
  51. HorizontalAlignment="Left"
  52. Command="{Binding SimOrderCommand}"
  53. Content="模拟订单"
  54. Style="{StaticResource ButtonStyle}" />
  55. <Button
  56. Grid.Row="0"
  57. Width="120"
  58. HorizontalAlignment="Left"
  59. Command="{Binding InitCommand}"
  60. Content="初始化设备"
  61. Style="{StaticResource ButtonStyle}" />
  62. </StackPanel>
  63. </StackPanel>
  64. </Grid>
  65. </UserControl>