MainPage.xaml 39 KB

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