终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

165 行
7.0 KiB

  1. <UserControl x:Class="BPASmartClient.MorkM.View.DebugView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. Name="调试界面"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  13. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Grid>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="400" />
  20. <ColumnDefinition />
  21. </Grid.ColumnDefinitions>
  22. <Grid Grid.Column="0">
  23. <!--<Grid.RowDefinitions>
  24. <RowDefinition />
  25. <RowDefinition Height="40" />
  26. </Grid.RowDefinitions>-->
  27. <StackPanel Orientation="Vertical">
  28. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  29. <ItemsControl ItemsSource="{Binding simOrderConfig}">
  30. <ItemsControl.ItemTemplate>
  31. <DataTemplate>
  32. <Grid Margin="0,10">
  33. <Grid.ColumnDefinitions>
  34. <ColumnDefinition />
  35. <ColumnDefinition />
  36. <ColumnDefinition />
  37. <ColumnDefinition />
  38. <ColumnDefinition />
  39. </Grid.ColumnDefinitions>
  40. <TextBlock
  41. HorizontalAlignment="Right"
  42. VerticalAlignment="Center"
  43. FontSize="14"
  44. Foreground="#00c2f4"
  45. Text="{Binding Text}" />
  46. <TextBox
  47. Grid.Column="1"
  48. Margin="10,0"
  49. Foreground="#9934F7f7"
  50. Background="Transparent"
  51. BorderBrush="#00c2f4"
  52. CaretBrush="Aqua"
  53. IsEnabled="{Binding IsEnable}"
  54. Text="{Binding Loc}" />
  55. <CheckBox
  56. Grid.Column="2"
  57. Height="20"
  58. VerticalAlignment="Center"
  59. Background="#FF2AB2E7"
  60. Content="启用随机数"
  61. FontSize="14"
  62. Foreground="#00c2f4"
  63. IsChecked="{Binding IsSelected}"
  64. />
  65. <Button
  66. Grid.Column="3"
  67. Margin="10,0,0,0"
  68. Command="{Binding DataContext.EditCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ItemsControl}}"
  69. CommandParameter="{Binding Text}"
  70. Content="编辑"
  71. FontSize="14"
  72. />
  73. <Button
  74. Grid.Column="4"
  75. Margin="5,0,0,0"
  76. Command="{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ItemsControl}}"
  77. CommandParameter="{Binding Text}"
  78. Content="删除"
  79. FontSize="14"
  80. />
  81. </Grid>
  82. </DataTemplate>
  83. </ItemsControl.ItemTemplate>
  84. </ItemsControl>
  85. </ScrollViewer>
  86. <UniformGrid Grid.Row="1" Columns="2">
  87. <Button
  88. Margin="10,10,10,0"
  89. Command="{Binding AddSimDataCommand}"
  90. Content="新增模拟数据"
  91. />
  92. <Button
  93. Margin="10,10,10,0"
  94. Grid.Column="1"
  95. Command="{Binding SimOrderCommand}"
  96. Content="模拟订单" Cursor="Hand"
  97. />
  98. </UniformGrid>
  99. </StackPanel>
  100. </Grid>
  101. <Grid Grid.Column="1" Margin="20,0,0,0">
  102. <Grid.RowDefinitions>
  103. <RowDefinition Height="80" />
  104. <RowDefinition Height="80" />
  105. <RowDefinition Height="80" />
  106. <RowDefinition />
  107. </Grid.RowDefinitions>
  108. <StackPanel Orientation="Vertical" >
  109. <!--#region 控制按钮-->
  110. <Button
  111. Margin="0,10,10,0"
  112. Command="{Binding InitCommand}"
  113. Width="200"
  114. VerticalAlignment="Center"
  115. HorizontalAlignment="Left"
  116. Content="设备初始化" Cursor="Hand"
  117. Grid.Row="0"
  118. />
  119. <CheckBox
  120. Margin="0,10,0,0"
  121. Grid.Row="1"
  122. Height="20"
  123. VerticalAlignment="Center"
  124. HorizontalAlignment="Left"
  125. Background="#FF2AB2E7"
  126. Content="启用本地模拟程序"
  127. FontSize="14"
  128. Foreground="#00c2f4"
  129. IsChecked="{Binding EnableLocalSimOrder}"
  130. />
  131. <!--<Button
  132. Margin="10,5,10,0"
  133. Command="{Binding InitCommand}"
  134. Content="停止"
  135. />-->
  136. <!--<Button
  137. x:Name="button_loop"
  138. Margin="10,10,10,0"
  139. Command="{Binding LoopSimOrderCommand}"
  140. Content="{Binding LoopOrderButtonContent}"
  141. />-->
  142. <!--#endregion-->
  143. </StackPanel>
  144. </Grid>
  145. </Grid>
  146. </UserControl>