MainPage.xaml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. <Page x:Class="CCDCountWpf.WpfPage.MainPage"
  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. xmlns:local="clr-namespace:CCDCountWpf.WpfPage"
  7. xmlns:BindNameSpace="clr-namespace:CCDCountWpf"
  8. mc:Ignorable="d"
  9. Title="MainPage" Height="1000" Width="1920" Loaded="Page_Loaded">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="*"/>
  13. <ColumnDefinition Width="380"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid Margin="0,0,0,240">
  16. <Border BorderBrush="Black" BorderThickness="1" Margin="2,2,2,2">
  17. <Image x:Name="ShowBox" Source="{Binding BitmapImage}" Margin="0,0,0,0"/>
  18. </Border>
  19. </Grid>
  20. <Border BorderBrush="Black" BorderThickness="1" Height="240" VerticalAlignment="Bottom" Padding="0,0,0,5" Margin="2,2,2,2">
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="0.85*"/>
  24. <ColumnDefinition Width="0.85*"/>
  25. <ColumnDefinition Width="*"/>
  26. </Grid.ColumnDefinitions>
  27. <Border Grid.Column="0"
  28. Background="#FF0087FF"
  29. CornerRadius="8"
  30. BorderBrush="Gray"
  31. BorderThickness="1"
  32. Margin="5,10,5,0" Height="218" VerticalAlignment="Top" Cursor="">
  33. <Grid>
  34. <StackPanel Orientation="Vertical" Margin="0,0,80,0">
  35. <StackPanel Orientation="Horizontal">
  36. <Label Content="总粒数:" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  37. <Label x:Name="AllActiveNumLab" Content="{Binding AllActiveNum}" HorizontalAlignment="Left" Margin="20,5,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
  38. <Label Content="粒" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  39. </StackPanel>
  40. <StackPanel Orientation="Horizontal">
  41. <Label Content="合格数:" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  42. <Label x:Name="AllOkNumLab" Content="{Binding AllOkNum}" HorizontalAlignment="Left" Margin="20,5,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
  43. <Label Content="粒" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  44. </StackPanel>
  45. <StackPanel Orientation="Horizontal">
  46. <Label Content="不合格数:" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  47. <Label x:Name="AllNgNumLab" Content="{Binding AllNgNum}" HorizontalAlignment="Left" Margin="0,5,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
  48. <Label Content="粒" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  49. </StackPanel>
  50. <StackPanel Orientation="Horizontal">
  51. <Label Content="装瓶数:" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  52. <Label Content="{Binding BottingCount}" HorizontalAlignment="Left" Margin="20,5,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
  53. <Label Content="瓶" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  54. </StackPanel>
  55. <StackPanel Orientation="Horizontal">
  56. <Label Content="罐装速度:" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  57. <Label Content="{Binding BottingCount}" HorizontalAlignment="Left" Margin="0,5,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
  58. <Label Content="瓶/分" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  59. </StackPanel>
  60. </StackPanel>
  61. <Label x:Name="CamRunStaticLab" Content="{Binding CamRunStatic}" HorizontalAlignment="Right" Margin="10,5,10,0" VerticalAlignment="Top" Background="{x:Null}" FontSize="25" Foreground="{Binding CameraStaticColor}" FontWeight="Bold" />
  62. <Button x:Name="DataClear" Content="清零" BorderThickness="1" HorizontalAlignment="Right" Margin="10,0,10,12" Width="80" Height="40" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="DataClear_Click" Cursor="Hand" VerticalAlignment="Bottom">
  63. <Button.Template>
  64. <ControlTemplate TargetType="Button">
  65. <Border CornerRadius="5"
  66. Background="{TemplateBinding Background}"
  67. BorderBrush="{TemplateBinding BorderBrush}"
  68. BorderThickness="{TemplateBinding BorderThickness}">
  69. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  70. </Border>
  71. </ControlTemplate>
  72. </Button.Template>
  73. </Button>
  74. </Grid>
  75. <!-- 卡片内容 -->
  76. </Border>
  77. <Border Grid.Column="1"
  78. Background="#FF0087FF"
  79. CornerRadius="8"
  80. BorderBrush="Gray"
  81. BorderThickness="1"
  82. Margin="5,10,5,0" Height="60" VerticalAlignment="Top">
  83. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  84. <Label Content="计数速度:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
  85. <Label x:Name="ShuLiSpeedTbx" Content="{Binding ShuLiSpeed}" HorizontalAlignment="Left" Margin="0,0,0,0" Width="60" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
  86. <Label Content="粒/秒" FontWeight="Bold" FontSize="20" Margin="0,10,0,0" Foreground="White" />
  87. </StackPanel>
  88. </Border>
  89. <Border Grid.Column="1"
  90. Background="#FF0087FF"
  91. CornerRadius="8"
  92. BorderBrush="Gray"
  93. BorderThickness="1"
  94. Margin="5,75,5,0" Height="153" VerticalAlignment="Top">
  95. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
  96. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  97. <TextBlock Text="生产批次:" FontSize="20" Margin="0,0,20,0" VerticalAlignment="Center" Foreground="White"/>
  98. <TextBox x:Name="BatchNumberTbx" Text="{Binding Source={x:Static BindNameSpace:ShowMessageBus.ShowBinding},Path = BatchNumber,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" FontSize="16" Width="160" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{x:Null}" Foreground="White" KeyDown="TextBox_KeyDown" Height="45"/>
  99. </StackPanel>
  100. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10,0,0">
  101. <Button x:Name="StartIdentifyBtn" Content="开始" BorderThickness="1" HorizontalAlignment="Right" Margin="0,0,20,0" VerticalAlignment="Top" Width="100" Height="60" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="StartIdentifyBtn_Click">
  102. <Button.Template>
  103. <ControlTemplate TargetType="Button">
  104. <Border CornerRadius="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
  105. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  106. </Border>
  107. </ControlTemplate>
  108. </Button.Template>
  109. </Button>
  110. <Button x:Name="StopIdentifyBtn" Content="暂停" BorderThickness="1" HorizontalAlignment="Right" Margin="0,0,0,0" VerticalAlignment="Top" Width="100" Height="60" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="StopIdentifyBtn_Click">
  111. <Button.Template>
  112. <ControlTemplate TargetType="Button">
  113. <Border CornerRadius="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
  114. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  115. </Border>
  116. </ControlTemplate>
  117. </Button.Template>
  118. </Button>
  119. </StackPanel>
  120. </StackPanel>
  121. </Border>
  122. <Border Grid.Column="2"
  123. Background="#FF0087FF"
  124. CornerRadius="8"
  125. BorderBrush="Gray"
  126. BorderThickness="1"
  127. Margin="5,10,5,0" Height="218" VerticalAlignment="Top" Cursor="">
  128. <Grid>
  129. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
  130. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  131. <Label Content="当前配方:" FontWeight="Bold" FontSize="20" Margin="10,0,0,0" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" />
  132. <TextBox x:Name="FormulationName" Text="{Binding FormulationName,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" Width="140" Height="40" Foreground="White" Background="{x:Null}" KeyDown="TextBox_KeyDown" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></TextBox>
  133. <Button x:Name="SaveFormulationBtn" Content="保存配方" BorderThickness="1" HorizontalAlignment="Center" Margin="20,0,0,0" VerticalAlignment="Center" Width="110" Height="50" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="SaveFormulationBtn_Click">
  134. <Button.Template>
  135. <ControlTemplate TargetType="Button">
  136. <Border CornerRadius="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
  137. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  138. </Border>
  139. </ControlTemplate>
  140. </Button.Template>
  141. </Button>
  142. </StackPanel>
  143. <StackPanel Orientation="Horizontal" Margin="0,15,0,0" HorizontalAlignment="Center" VerticalAlignment="Center">
  144. <Label Content="选择配方:" FontWeight="Bold" FontSize="20" Margin="10,0,0,0" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" />
  145. <ComboBox x:Name="FormulationCoBox" Height="40" Width="140" ItemsSource="{Binding FormulationItems}" HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalContentAlignment="Center" FontSize="20">
  146. <ComboBox.Template>
  147. <ControlTemplate TargetType="ComboBox">
  148. <Grid>
  149. <ToggleButton
  150. Foreground="White"
  151. IsChecked="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
  152. ClickMode="Press">
  153. <ToggleButton.Template>
  154. <ControlTemplate TargetType="ToggleButton">
  155. <Border x:Name="Border" Background="#FF0087FF" BorderBrush="#FFABADB3" BorderThickness="1">
  156. <Grid>
  157. <Grid.ColumnDefinitions>
  158. <ColumnDefinition />
  159. <ColumnDefinition Width="20" />
  160. </Grid.ColumnDefinitions>
  161. <ContentPresenter Grid.Column="0" Margin="3" />
  162. <Path x:Name="Arrow" Grid.Column="1"
  163. Fill="White"
  164. HorizontalAlignment="Center"
  165. VerticalAlignment="Center"
  166. Data="M 0 0 L 4 4 L 8 0 Z" />
  167. </Grid>
  168. </Border>
  169. <ControlTemplate.Triggers>
  170. <Trigger Property="IsMouseOver" Value="True">
  171. <Setter TargetName="Border" Property="Background" Value="LightBlue" />
  172. </Trigger>
  173. </ControlTemplate.Triggers>
  174. </ControlTemplate>
  175. </ToggleButton.Template>
  176. </ToggleButton>
  177. <ContentPresenter x:Name="ContentSite"
  178. IsHitTestVisible="False"
  179. Content="{TemplateBinding SelectionBoxItem}"
  180. ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
  181. Margin="3,3,23,3"
  182. VerticalAlignment="Center"
  183. HorizontalAlignment="Left"
  184. TextBlock.Foreground="White"/>
  185. <Popup x:Name="Popup"
  186. Placement="Bottom"
  187. IsOpen="{TemplateBinding IsDropDownOpen}"
  188. AllowsTransparency="True"
  189. Focusable="False"
  190. PopupAnimation="Slide">
  191. <Border x:Name="DropDownBorder"
  192. Background="#FF0087FF"
  193. BorderBrush="#FF0087FF"
  194. BorderThickness="1">
  195. <ScrollViewer Margin="0,3,0,3"
  196. SnapsToDevicePixels="True">
  197. <ItemsPresenter KeyboardNavigation.DirectionalNavigation="Contained" />
  198. </ScrollViewer>
  199. </Border>
  200. </Popup>
  201. </Grid>
  202. </ControlTemplate>
  203. </ComboBox.Template>
  204. <ComboBox.ItemContainerStyle>
  205. <Style TargetType="ComboBoxItem">
  206. <Setter Property="Background" Value="#FF0087FF" />
  207. <Setter Property="Foreground" Value="White" />
  208. <Style.Triggers>
  209. <Trigger Property="IsHighlighted" Value="True">
  210. <Setter Property="Background" Value="LightBlue" />
  211. </Trigger>
  212. </Style.Triggers>
  213. </Style>
  214. </ComboBox.ItemContainerStyle>
  215. </ComboBox>
  216. <Button x:Name="ReadFormulationBtn" Content="读取配方" BorderThickness="1" HorizontalAlignment="Center" Margin="20,0,0,0" VerticalAlignment="Center" Width="110" Height="50" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="ReadFormulationBtn_Click">
  217. <Button.Template>
  218. <ControlTemplate TargetType="Button">
  219. <Border CornerRadius="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
  220. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  221. </Border>
  222. </ControlTemplate>
  223. </Button.Template>
  224. </Button>
  225. </StackPanel>
  226. </StackPanel>
  227. </Grid>
  228. </Border>
  229. </Grid>
  230. </Border>
  231. <Border Grid.Column="1" BorderBrush="Black" BorderThickness="1" Margin="2,2,2,2">
  232. <Border Background="#FF0087FF"
  233. CornerRadius="8"
  234. BorderBrush="Gray"
  235. BorderThickness="1"
  236. Margin="15,10,15,10" Cursor="">
  237. <Grid>
  238. <ScrollViewer VerticalScrollBarVisibility="Auto">
  239. <StackPanel Orientation="Vertical">
  240. <StackPanel Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center">
  241. <TextBlock Text="A速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
  242. <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueUpUPBtn" Content="++" Width="45" Height="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  243. <Button.Template>
  244. <ControlTemplate TargetType="Button">
  245. <Border CornerRadius="5"
  246. Background="{TemplateBinding Background}"
  247. BorderBrush="{TemplateBinding BorderBrush}"
  248. BorderThickness="{TemplateBinding BorderThickness}">
  249. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  250. </Border>
  251. </ControlTemplate>
  252. </Button.Template>
  253. </Button>
  254. <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueUpBtn" Content="+" Width="45" Height="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  255. <Button.Template>
  256. <ControlTemplate TargetType="Button">
  257. <Border CornerRadius="5"
  258. Background="{TemplateBinding Background}"
  259. BorderBrush="{TemplateBinding BorderBrush}"
  260. BorderThickness="{TemplateBinding BorderThickness}">
  261. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  262. </Border>
  263. </ControlTemplate>
  264. </Button.Template>
  265. </Button>
  266. <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = ShakeTable1H_FillingSpeed,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" FontSize="16" Width="79" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" Background="{x:Null}" KeyDown="TextBox_KeyDown"/>
  267. <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueDownBtn" Content="-" Width="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  268. <Button.Template>
  269. <ControlTemplate TargetType="Button">
  270. <Border CornerRadius="5"
  271. Background="{TemplateBinding Background}"
  272. BorderBrush="{TemplateBinding BorderBrush}"
  273. BorderThickness="{TemplateBinding BorderThickness}">
  274. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  275. </Border>
  276. </ControlTemplate>
  277. </Button.Template>
  278. </Button>
  279. <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  280. <Button.Template>
  281. <ControlTemplate TargetType="Button">
  282. <Border CornerRadius="5"
  283. Background="{TemplateBinding Background}"
  284. BorderBrush="{TemplateBinding BorderBrush}"
  285. BorderThickness="{TemplateBinding BorderThickness}">
  286. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  287. </Border>
  288. </ControlTemplate>
  289. </Button.Template>
  290. </Button>
  291. </StackPanel>
  292. <StackPanel Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
  293. <TextBlock Text="B速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
  294. <Button x:Name="BottingFilterVibrationTableHighSpeedValueUpUpBtn" Content="++" Width="45" Height="45" Click="BottingFilterVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  295. <Button.Template>
  296. <ControlTemplate TargetType="Button">
  297. <Border CornerRadius="5"
  298. Background="{TemplateBinding Background}"
  299. BorderBrush="{TemplateBinding BorderBrush}"
  300. BorderThickness="{TemplateBinding BorderThickness}">
  301. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  302. </Border>
  303. </ControlTemplate>
  304. </Button.Template>
  305. </Button>
  306. <Button x:Name="BottingFilterVibrationTableHighSpeedValueUpBtn" Content="+" Width="45" Height="45" Click="BottingFilterVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  307. <Button.Template>
  308. <ControlTemplate TargetType="Button">
  309. <Border CornerRadius="5"
  310. Background="{TemplateBinding Background}"
  311. BorderBrush="{TemplateBinding BorderBrush}"
  312. BorderThickness="{TemplateBinding BorderThickness}">
  313. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  314. </Border>
  315. </ControlTemplate>
  316. </Button.Template>
  317. </Button>
  318. <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = ShakeTable2H_FillingSpeed,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" Background="{x:Null}" KeyDown="TextBox_KeyDown"/>
  319. <Button x:Name="BottingFilterVibrationTableHighSpeedValueDownBtn" Content="-" Width="45" Click="BottingFilterVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  320. <Button.Template>
  321. <ControlTemplate TargetType="Button">
  322. <Border CornerRadius="5"
  323. Background="{TemplateBinding Background}"
  324. BorderBrush="{TemplateBinding BorderBrush}"
  325. BorderThickness="{TemplateBinding BorderThickness}">
  326. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  327. </Border>
  328. </ControlTemplate>
  329. </Button.Template>
  330. </Button>
  331. <Button x:Name="BottingFilterVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="45" Click="BottingFilterVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  332. <Button.Template>
  333. <ControlTemplate TargetType="Button">
  334. <Border CornerRadius="5"
  335. Background="{TemplateBinding Background}"
  336. BorderBrush="{TemplateBinding BorderBrush}"
  337. BorderThickness="{TemplateBinding BorderThickness}">
  338. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  339. </Border>
  340. </ControlTemplate>
  341. </Button.Template>
  342. </Button>
  343. </StackPanel>
  344. <StackPanel Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
  345. <TextBlock Text="C速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
  346. <Button x:Name="BottingCountVibrationTableHighSpeedValueUpUpBtn" Content="++" Width="45" Height="45" Click="BottingCountVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  347. <Button.Template>
  348. <ControlTemplate TargetType="Button">
  349. <Border CornerRadius="5"
  350. Background="{TemplateBinding Background}"
  351. BorderBrush="{TemplateBinding BorderBrush}"
  352. BorderThickness="{TemplateBinding BorderThickness}">
  353. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  354. </Border>
  355. </ControlTemplate>
  356. </Button.Template>
  357. </Button>
  358. <Button x:Name="BottingCountVibrationTableHighSpeedValueUpBtn" Content="+" Width="45" Height="45" Click="BottingCountVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  359. <Button.Template>
  360. <ControlTemplate TargetType="Button">
  361. <Border CornerRadius="5"
  362. Background="{TemplateBinding Background}"
  363. BorderBrush="{TemplateBinding BorderBrush}"
  364. BorderThickness="{TemplateBinding BorderThickness}">
  365. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  366. </Border>
  367. </ControlTemplate>
  368. </Button.Template>
  369. </Button>
  370. <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = ShakeTable3H_FillingSpeed,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{x:Null}" Foreground="White" KeyDown="TextBox_KeyDown"/>
  371. <Button x:Name="BottingCountVibrationTableHighSpeedValueDownBtn" Content="-" Width="45" Click="BottingCountVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  372. <Button.Template>
  373. <ControlTemplate TargetType="Button">
  374. <Border CornerRadius="5"
  375. Background="{TemplateBinding Background}"
  376. BorderBrush="{TemplateBinding BorderBrush}"
  377. BorderThickness="{TemplateBinding BorderThickness}">
  378. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  379. </Border>
  380. </ControlTemplate>
  381. </Button.Template>
  382. </Button>
  383. <Button x:Name="BottingCountVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="45" Click="BottingCountVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  384. <Button.Template>
  385. <ControlTemplate TargetType="Button">
  386. <Border CornerRadius="5"
  387. Background="{TemplateBinding Background}"
  388. BorderBrush="{TemplateBinding BorderBrush}"
  389. BorderThickness="{TemplateBinding BorderThickness}">
  390. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  391. </Border>
  392. </ControlTemplate>
  393. </Button.Template>
  394. </Button>
  395. </StackPanel>
  396. <StackPanel Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
  397. <TextBlock Text="罐装值:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
  398. <Button x:Name="BottValueSetUpUpBtn" Content="++" Width="45" Height="45" Click="BottValueSetUpUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  399. <Button.Template>
  400. <ControlTemplate TargetType="Button">
  401. <Border CornerRadius="5"
  402. Background="{TemplateBinding Background}"
  403. BorderBrush="{TemplateBinding BorderBrush}"
  404. BorderThickness="{TemplateBinding BorderThickness}">
  405. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  406. </Border>
  407. </ControlTemplate>
  408. </Button.Template>
  409. </Button>
  410. <Button x:Name="BottValueSetUpBtn" Content="+" Width="45" Height="45" Click="BottValueSetUpBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  411. <Button.Template>
  412. <ControlTemplate TargetType="Button">
  413. <Border CornerRadius="5"
  414. Background="{TemplateBinding Background}"
  415. BorderBrush="{TemplateBinding BorderBrush}"
  416. BorderThickness="{TemplateBinding BorderThickness}">
  417. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  418. </Border>
  419. </ControlTemplate>
  420. </Button.Template>
  421. </Button>
  422. <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottValueSet,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{x:Null}" Foreground="White" KeyDown="TextBox_KeyDown"/>
  423. <Button x:Name="BottValueSetDownBtn" Content="-" Width="45" Click="BottValueSetDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  424. <Button.Template>
  425. <ControlTemplate TargetType="Button">
  426. <Border CornerRadius="5"
  427. Background="{TemplateBinding Background}"
  428. BorderBrush="{TemplateBinding BorderBrush}"
  429. BorderThickness="{TemplateBinding BorderThickness}">
  430. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  431. </Border>
  432. </ControlTemplate>
  433. </Button.Template>
  434. </Button>
  435. <Button x:Name="BottValueSetDownDownBtn" Content="--" Width="45" Click="BottValueSetDownDownBtn_Click" Background="#FF0123FF" Foreground="White" FontSize="20" Cursor="Hand">
  436. <Button.Template>
  437. <ControlTemplate TargetType="Button">
  438. <Border CornerRadius="5"
  439. Background="{TemplateBinding Background}"
  440. BorderBrush="{TemplateBinding BorderBrush}"
  441. BorderThickness="{TemplateBinding BorderThickness}">
  442. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  443. </Border>
  444. </ControlTemplate>
  445. </Button.Template>
  446. </Button>
  447. </StackPanel>
  448. </StackPanel>
  449. </ScrollViewer>
  450. </Grid>
  451. </Border>
  452. </Border>
  453. </Grid>
  454. </Page>