终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

255 linhas
12 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkSUpgradedVer.View.ParSet"
  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.MorkSUpgradedVer.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  9. xmlns:vm="clr-namespace:BPASmartClient.MorkSUpgradedVer.ViewModel"
  10. Name="参数设置界面"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:ParSetViewModel />
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <ResourceDictionary>
  19. <ResourceDictionary.MergedDictionaries>
  20. <ResourceDictionary>
  21. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  22. <Setter Property="FontFamily" Value="楷体" />
  23. <Setter Property="FontSize" Value="18" />
  24. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  25. <Setter Property="VerticalAlignment" Value="Center" />
  26. <Setter Property="HorizontalAlignment" Value="Center" />
  27. </Style>
  28. <Style x:Key="TextBoxStyle" TargetType="TextBox">
  29. <Setter Property="FontFamily" Value="楷体" />
  30. <Setter Property="FontSize" Value="22" />
  31. <Setter Property="Background" Value="Transparent" />
  32. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  33. <Setter Property="BorderBrush" Value="#FF23CACA" />
  34. <Setter Property="CaretBrush" Value="Aqua" />
  35. <Setter Property="VerticalAlignment" Value="Center" />
  36. </Style>
  37. </ResourceDictionary>
  38. </ResourceDictionary.MergedDictionaries>
  39. </ResourceDictionary>
  40. </UserControl.Resources>
  41. <Grid Margin="10">
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="35" />
  44. <RowDefinition Height="Auto" />
  45. </Grid.RowDefinitions>
  46. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  47. <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
  48. <pry:IcoButton
  49. Grid.Column="5"
  50. Width="140"
  51. HorizontalAlignment="Left"
  52. Command="{Binding SaveInfoCommand}"
  53. Content="保存配置"
  54. FontSize="16"
  55. IcoText="&#xe936;"
  56. Style="{StaticResource IcoButtonStyle}">
  57. <pry:IcoButton.Foreground>
  58. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  59. <GradientStop Color="#FFBB662A" />
  60. <GradientStop Offset="1" Color="White" />
  61. </LinearGradientBrush>
  62. </pry:IcoButton.Foreground>
  63. </pry:IcoButton>
  64. </StackPanel>
  65. <!-- 参数放置面板 -->
  66. <Grid Grid.Row="2">
  67. <StackPanel Orientation="Horizontal">
  68. <ItemsControl ItemsSource="{Binding parSets}">
  69. <ItemsControl.ItemTemplate>
  70. <DataTemplate>
  71. <StackPanel Orientation="Horizontal">
  72. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  73. <TextBox
  74. Width="100"
  75. Margin="10,0,0,0"
  76. VerticalAlignment="Center"
  77. Background="Transparent"
  78. BorderBrush="#FF23CACA"
  79. CaretBrush="Aqua"
  80. FontFamily="楷体"
  81. FontSize="21"
  82. Foreground="#ff34f7f7"
  83. Text="{Binding Minute}" />
  84. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  85. <TextBox
  86. Width="100"
  87. Margin="0,10"
  88. VerticalAlignment="Center"
  89. Background="Transparent"
  90. BorderBrush="#FF23CACA"
  91. CaretBrush="Aqua"
  92. FontFamily="楷体"
  93. FontSize="21"
  94. Foreground="#ff34f7f7"
  95. Text="{Binding Second}" />
  96. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  97. <CheckBox
  98. Height="20"
  99. Margin="10"
  100. VerticalAlignment="Center"
  101. Background="#FF2AB2E7"
  102. Content="{Binding CheckBoxContext}"
  103. FontSize="14"
  104. Foreground="#00c2f4"
  105. IsChecked="{Binding IsShield}"
  106. Template="{StaticResource CbTemplate}" />
  107. </StackPanel>
  108. </DataTemplate>
  109. </ItemsControl.ItemTemplate>
  110. </ItemsControl>
  111. <Grid>
  112. <Grid.RowDefinitions>
  113. <RowDefinition Height="50" />
  114. <RowDefinition />
  115. </Grid.RowDefinitions>
  116. <Grid
  117. Grid.Row="0"
  118. Margin="100,10,0,0"
  119. Background="#ff0C255F">
  120. <Grid.ColumnDefinitions>
  121. <ColumnDefinition />
  122. <ColumnDefinition />
  123. <ColumnDefinition />
  124. </Grid.ColumnDefinitions>
  125. <TextBlock
  126. Grid.Column="0"
  127. FontSize="24"
  128. Style="{StaticResource TitleTextblockStyle}"
  129. Text="库位序号" />
  130. <TextBlock
  131. Grid.Column="1"
  132. FontSize="24"
  133. Style="{StaticResource TitleTextblockStyle}"
  134. Text="煮时间(分)" />
  135. <TextBlock
  136. Grid.Column="2"
  137. FontSize="24"
  138. Style="{StaticResource TitleTextblockStyle}"
  139. Text="煮时间(秒)" />
  140. <Border
  141. Grid.Column="0"
  142. Grid.ColumnSpan="4"
  143. BorderBrush="{StaticResource bordColor}"
  144. BorderThickness="1,1,1,1" />
  145. <Border
  146. Grid.Column="1"
  147. BorderBrush="{StaticResource bordColor}"
  148. BorderThickness="1,0,1,0" />
  149. <Border
  150. Grid.Column="3"
  151. BorderBrush="{StaticResource bordColor}"
  152. BorderThickness="1,0,1,0" />
  153. </Grid>
  154. <Grid Grid.Row="1" Margin="100,0,0,0">
  155. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  156. <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding DishLibraryParSets}">
  157. <ItemsControl.ItemTemplate>
  158. <DataTemplate>
  159. <Grid Name="gr">
  160. <Grid.ColumnDefinitions>
  161. <ColumnDefinition Width="157"/>
  162. <ColumnDefinition Width="1*"/>
  163. <ColumnDefinition Width="1*"/>
  164. </Grid.ColumnDefinitions>
  165. <TextBlock
  166. Grid.Column="0"
  167. HorizontalAlignment="Center"
  168. VerticalAlignment="Center"
  169. FontSize="18"
  170. Text="{Binding TextBlockContext}" />
  171. <!--<ComboBox
  172. Grid.Column="1"
  173. Height="auto"
  174. Background="Transparent"
  175. BorderThickness="0"
  176. FontSize="18"
  177. Foreground="DeepSkyBlue"
  178. IsEditable="False"
  179. ItemsSource="{Binding DataContext.DishTypeName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  180. SelectedIndex="{Binding LocDishType}" />-->
  181. <Border
  182. Grid.Column="0"
  183. Grid.ColumnSpan="3"
  184. BorderBrush="{StaticResource bordColor}"
  185. BorderThickness="1,0,1,1"></Border>
  186. <Border
  187. Grid.Column="1"
  188. BorderBrush="{StaticResource bordColor}"
  189. BorderThickness="1,0,1,0">
  190. <TextBox
  191. Grid.Column="1"
  192. FontSize="18"
  193. Style="{StaticResource InputTextboxStyle}"
  194. Text="{Binding Minute}" />
  195. </Border>
  196. <Border
  197. Grid.Column="2"
  198. BorderBrush="{StaticResource bordColor}"
  199. BorderThickness="1,0,1,0">
  200. <TextBox
  201. Grid.Column="2"
  202. FontSize="18"
  203. Style="{StaticResource InputTextboxStyle}"
  204. Text="{Binding Second}" />
  205. </Border>
  206. </Grid>
  207. <DataTemplate.Triggers>
  208. <Trigger Property="IsMouseOver" Value="true">
  209. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  210. </Trigger>
  211. </DataTemplate.Triggers>
  212. </DataTemplate>
  213. </ItemsControl.ItemTemplate>
  214. </ItemsControl>
  215. </ScrollViewer>
  216. </Grid>
  217. </Grid>
  218. </StackPanel>
  219. </Grid>
  220. </Grid>
  221. </UserControl>