MainWindow.xaml 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <Window x:Class="PRSDigitalKeyUnit.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:PRSDigitalKeyUnit"
  7. xmlns:wpf="clr-namespace:InABox.WPF;assembly=InABox.Wpf"
  8. mc:Ignorable="d"
  9. Title="MainWindow" Height="490" Width="800">
  10. <Window.DataContext><local:MainWindowViewModel x:Name="ViewModel"/></Window.DataContext>
  11. <Window.Resources>
  12. <wpf:BooleanToBrushConverter x:Key="BooleanToBrushConverter" TrueValue="#FF0000" FalseValue="#444444" />
  13. </Window.Resources>
  14. <Grid>
  15. <DockPanel>
  16. <DockPanel DockPanel.Dock="Left" Width="50" Background="DarkSlateGray">
  17. <Ellipse DockPanel.Dock="Top" Height="30" Width="30" Stroke="Black" StrokeThickness="7" Fill="#888888" Margin="10"/>
  18. <Ellipse DockPanel.Dock="Bottom" Height="30" Width="30" Stroke="Black" StrokeThickness="7" Fill="#888888" Margin="10"/>
  19. <Ellipse DockPanel.Dock="Left" Height="30" Width="30" Fill="DarkSlateGray"/>
  20. </DockPanel>
  21. <DockPanel DockPanel.Dock="Right" Width="50" Background="DarkSlateGray">
  22. <Ellipse DockPanel.Dock="Top" Height="30" Width="30" Stroke="Black" StrokeThickness="7" Fill="#888888" Margin="10"/>
  23. <Ellipse DockPanel.Dock="Bottom" Height="30" Width="30" Stroke="Black" StrokeThickness="7" Fill="#888888" Margin="10"/>
  24. <Rectangle DockPanel.Dock="Left" Width="30" Height="280" Fill="#3A3A3A" Margin="0,0,20,0"/>
  25. </DockPanel>
  26. <Grid DockPanel.Dock="Top" Height="50" Background="#333333">
  27. <Grid.ColumnDefinitions>
  28. <ColumnDefinition Width="1.5*"/>
  29. <ColumnDefinition Width="4*"/>
  30. <ColumnDefinition Width="0.5*"/>
  31. <ColumnDefinition Width="2.5*"/>
  32. <ColumnDefinition Width="4*"/>
  33. <ColumnDefinition Width="2*"/>
  34. <ColumnDefinition Width="1.2*"/>
  35. <ColumnDefinition Width="3*"/>
  36. <ColumnDefinition Width="2*"/>
  37. <ColumnDefinition Width="2*"/>
  38. </Grid.ColumnDefinitions>
  39. <Grid Grid.Column="1">
  40. <Grid.RowDefinitions>
  41. <RowDefinition Height="*"/>
  42. <RowDefinition Height="Auto"/>
  43. </Grid.RowDefinitions>
  44. <Grid Background="#00AA66" Grid.Row="1" Margin="0, 0, 0, 5">
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition Width="*"/>
  47. <ColumnDefinition Width="*"/>
  48. <ColumnDefinition Width="*"/>
  49. </Grid.ColumnDefinitions>
  50. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 5, 0, 0"/>
  51. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 5, 0, 0"/>
  52. <Rectangle Grid.Column="2" Fill="#333333" Width="10" Height="15" Margin="0, 5, 0, 0"/>
  53. </Grid>
  54. <Grid Background="#10CC99" Grid.Row="0">
  55. <Grid.ColumnDefinitions>
  56. <ColumnDefinition Width="*"/>
  57. <ColumnDefinition Width="*"/>
  58. <ColumnDefinition Width="*"/>
  59. </Grid.ColumnDefinitions>
  60. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  61. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  62. <Ellipse Grid.Column="2" Fill="#AAAAAA" Width="18" Margin="3"/>
  63. </Grid>
  64. </Grid>
  65. <Grid Grid.Column="3">
  66. <Grid.RowDefinitions>
  67. <RowDefinition Height="*"/>
  68. <RowDefinition Height="Auto"/>
  69. </Grid.RowDefinitions>
  70. <Grid Background="#00AA66" Grid.Row="1" Margin="0, 0, 0, 5">
  71. <Grid.ColumnDefinitions>
  72. <ColumnDefinition Width="*"/>
  73. <ColumnDefinition Width="*"/>
  74. </Grid.ColumnDefinitions>
  75. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 5, 0, 0"/>
  76. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 5, 0, 0"/>
  77. </Grid>
  78. <Grid Background="#10CC99" Grid.Row="0">
  79. <Grid.ColumnDefinitions>
  80. <ColumnDefinition Width="*"/>
  81. <ColumnDefinition Width="*"/>
  82. </Grid.ColumnDefinitions>
  83. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  84. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  85. </Grid>
  86. </Grid>
  87. <Grid Grid.Column="4">
  88. <Grid.ColumnDefinitions>
  89. <ColumnDefinition Width="*"/>
  90. <ColumnDefinition Width="*"/>
  91. <ColumnDefinition Width="*"/>
  92. <ColumnDefinition Width="*"/>
  93. </Grid.ColumnDefinitions>
  94. <Grid.RowDefinitions>
  95. <RowDefinition Height="*"/>
  96. <RowDefinition Height="*"/>
  97. </Grid.RowDefinitions>
  98. <Rectangle Stroke="White" Fill="Silver" Grid.Column="0" Grid.Row="0" Margin="10,3,5,3"/>
  99. <Rectangle Stroke="White" Fill="Silver" Grid.Column="1" Grid.Row="0" Margin="10,3,5,3"/>
  100. <Rectangle Stroke="White" Fill="Silver" Grid.Column="2" Grid.Row="0" Margin="10,3,5,3"/>
  101. <Rectangle Stroke="Black" Fill="Silver" Grid.Column="3" Grid.Row="0" Margin="9,10,6,4"/>
  102. <TextBlock Text="TXD" Grid.Row="1" Grid.Column="0" FontSize="10" Foreground="White">
  103. <TextBlock.RenderTransform>
  104. <TransformGroup>
  105. <RotateTransform Angle="90" />
  106. <TranslateTransform X="20" Y="2"/>
  107. </TransformGroup>
  108. </TextBlock.RenderTransform>
  109. </TextBlock>
  110. <TextBlock Text="RXD" Grid.Row="1" Grid.Column="1" FontSize="10" Foreground="White">
  111. <TextBlock.RenderTransform>
  112. <TransformGroup>
  113. <RotateTransform Angle="90" />
  114. <TranslateTransform X="20" Y="2"/>
  115. </TransformGroup>
  116. </TextBlock.RenderTransform>
  117. </TextBlock>
  118. <TextBlock Text="PWR" Grid.Row="1" Grid.Column="2" FontSize="10" Foreground="White">
  119. <TextBlock.RenderTransform>
  120. <TransformGroup>
  121. <RotateTransform Angle="90" />
  122. <TranslateTransform X="20" Y="2"/>
  123. </TransformGroup>
  124. </TextBlock.RenderTransform>
  125. </TextBlock>
  126. <TextBlock Text="RGB" Grid.Row="1" Grid.Column="3" FontSize="10" Foreground="White">
  127. <TextBlock.RenderTransform>
  128. <TransformGroup>
  129. <RotateTransform Angle="90" />
  130. <TranslateTransform X="20" Y="2"/>
  131. </TransformGroup>
  132. </TextBlock.RenderTransform>
  133. </TextBlock>
  134. </Grid>
  135. <Grid Grid.Column="5">
  136. <Grid.RowDefinitions>
  137. <RowDefinition Height="*"/>
  138. <RowDefinition Height="Auto"/>
  139. </Grid.RowDefinitions>
  140. <Rectangle Fill="LightGray" Margin="9, 4, 9, 4"/>
  141. <TextBlock Text="USB" Grid.Row="1" Grid.Column="0" FontSize="10" Foreground="White">
  142. <TextBlock.RenderTransform>
  143. <TransformGroup>
  144. <RotateTransform Angle="180" />
  145. <TranslateTransform X="35" Y="12"/>
  146. </TransformGroup>
  147. </TextBlock.RenderTransform>
  148. </TextBlock>
  149. </Grid>
  150. <Grid Grid.Column="6" Background="LightGray" Margin="0,5,0,10">
  151. <Polygon Fill="DarkSlateGray" Points="7,0 30,0 37,7 37,30 30,40 7,37 0,30 0, 7"/>
  152. </Grid>
  153. <Grid Grid.Column="7">
  154. <Grid.ColumnDefinitions>
  155. <ColumnDefinition Width="*"/>
  156. <ColumnDefinition Width="*"/>
  157. </Grid.ColumnDefinitions>
  158. <Grid.RowDefinitions>
  159. <RowDefinition Height="*"/>
  160. <RowDefinition Height="2*"/>
  161. <RowDefinition Height="3*"/>
  162. </Grid.RowDefinitions>
  163. <Rectangle Stroke="White" Fill="White" Grid.Column="0" Grid.Row="0" Margin="15,3,10,0"/>
  164. <Rectangle Stroke="White" Fill="White" Grid.Column="1" Grid.Row="0" Margin="15,3,10,0"/>
  165. <Rectangle Stroke="White" Fill="DarkSlateGray" Grid.Column="0" Grid.Row="1" Margin="10,0,5,3"/>
  166. <Rectangle Stroke="White" Fill="DarkSlateGray" Grid.Column="1" Grid.Row="1" Margin="10,0,5,3"/>
  167. <TextBlock Text="RESET" Grid.Row="2" Grid.Column="0" FontSize="10" Foreground="White">
  168. <TextBlock.RenderTransform>
  169. <TransformGroup>
  170. <RotateTransform Angle="180" />
  171. <TranslateTransform X="34" Y="10"/>
  172. </TransformGroup>
  173. </TextBlock.RenderTransform>
  174. </TextBlock>
  175. <TextBlock Text="BOOT" Grid.Row="2" Grid.Column="1" FontSize="10" Foreground="White">
  176. <TextBlock.RenderTransform>
  177. <TransformGroup>
  178. <RotateTransform Angle="180" />
  179. <TranslateTransform X="34" Y="10"/>
  180. </TransformGroup>
  181. </TextBlock.RenderTransform>
  182. </TextBlock>
  183. </Grid>
  184. <Rectangle Grid.Column="8" Fill="Goldenrod" Margin="10, 0, 20, 5"/>
  185. </Grid>
  186. <Grid DockPanel.Dock="Bottom" Height="50" Background="#333333">
  187. <Grid.ColumnDefinitions>
  188. <ColumnDefinition Width="*"/>
  189. <ColumnDefinition Width="3*"/>
  190. <ColumnDefinition Width="3*"/>
  191. <ColumnDefinition Width="3*"/>
  192. <ColumnDefinition Width="3*"/>
  193. <ColumnDefinition Width="3*"/>
  194. <ColumnDefinition Width="3*"/>
  195. <ColumnDefinition Width="*"/>
  196. </Grid.ColumnDefinitions>
  197. <Grid.RowDefinitions>
  198. <RowDefinition Height="Auto"/>
  199. <RowDefinition Height="*"/>
  200. </Grid.RowDefinitions>
  201. <Grid Grid.Column="1" Background="#00AA66" Margin="0, 5, 0, 0">
  202. <Grid.ColumnDefinitions>
  203. <ColumnDefinition Width="*"/>
  204. <ColumnDefinition Width="*"/>
  205. <ColumnDefinition Width="*"/>
  206. </Grid.ColumnDefinitions>
  207. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  208. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  209. <Rectangle Grid.Column="2" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  210. </Grid>
  211. <Grid Grid.Column="1" Background="#10CC99" Grid.Row="1">
  212. <Grid.ColumnDefinitions>
  213. <ColumnDefinition Width="*"/>
  214. <ColumnDefinition Width="*"/>
  215. <ColumnDefinition Width="*"/>
  216. </Grid.ColumnDefinitions>
  217. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  218. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  219. <Ellipse Grid.Column="2" Fill="#AAAAAA" Width="18" Margin="3"/>
  220. </Grid>
  221. <Grid Grid.Column="2" Background="#00AA66" Margin="0, 5, 0, 0">
  222. <Grid.ColumnDefinitions>
  223. <ColumnDefinition Width="*"/>
  224. <ColumnDefinition Width="*"/>
  225. <ColumnDefinition Width="*"/>
  226. </Grid.ColumnDefinitions>
  227. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  228. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  229. <Rectangle Grid.Column="2" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  230. </Grid>
  231. <Grid Grid.Column="2" Background="#10CC99" Grid.Row="1">
  232. <Grid.ColumnDefinitions>
  233. <ColumnDefinition Width="*"/>
  234. <ColumnDefinition Width="*"/>
  235. <ColumnDefinition Width="*"/>
  236. </Grid.ColumnDefinitions>
  237. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  238. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  239. <Ellipse Grid.Column="2" Fill="#AAAAAA" Width="18" Margin="3"/>
  240. </Grid>
  241. <Grid Grid.Column="3" Background="#00AA66" Margin="0, 5, 0, 0">
  242. <Grid.ColumnDefinitions>
  243. <ColumnDefinition Width="*"/>
  244. <ColumnDefinition Width="*"/>
  245. <ColumnDefinition Width="*"/>
  246. </Grid.ColumnDefinitions>
  247. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  248. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  249. <Rectangle Grid.Column="2" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  250. </Grid>
  251. <Grid Grid.Column="3" Background="#10CC99" Grid.Row="1">
  252. <Grid.ColumnDefinitions>
  253. <ColumnDefinition Width="*"/>
  254. <ColumnDefinition Width="*"/>
  255. <ColumnDefinition Width="*"/>
  256. </Grid.ColumnDefinitions>
  257. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  258. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  259. <Ellipse Grid.Column="2" Fill="#AAAAAA" Width="18" Margin="3"/>
  260. </Grid>
  261. <Grid Grid.Column="4" Background="#00AA66" Margin="0, 5, 0, 0">
  262. <Grid.ColumnDefinitions>
  263. <ColumnDefinition Width="*"/>
  264. <ColumnDefinition Width="*"/>
  265. <ColumnDefinition Width="*"/>
  266. </Grid.ColumnDefinitions>
  267. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  268. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  269. <Rectangle Grid.Column="2" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  270. </Grid>
  271. <Grid Grid.Column="4" Background="#10CC99" Grid.Row="1">
  272. <Grid.ColumnDefinitions>
  273. <ColumnDefinition Width="*"/>
  274. <ColumnDefinition Width="*"/>
  275. <ColumnDefinition Width="*"/>
  276. </Grid.ColumnDefinitions>
  277. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  278. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  279. <Ellipse Grid.Column="2" Fill="#AAAAAA" Width="18" Margin="3"/>
  280. </Grid>
  281. <Grid Grid.Column="5" Background="#00AA66" Margin="0, 5, 0, 0">
  282. <Grid.ColumnDefinitions>
  283. <ColumnDefinition Width="*"/>
  284. <ColumnDefinition Width="*"/>
  285. <ColumnDefinition Width="*"/>
  286. </Grid.ColumnDefinitions>
  287. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  288. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  289. <Rectangle Grid.Column="2" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  290. </Grid>
  291. <Grid Grid.Column="5" Background="#10CC99" Grid.Row="1">
  292. <Grid.ColumnDefinitions>
  293. <ColumnDefinition Width="*"/>
  294. <ColumnDefinition Width="*"/>
  295. <ColumnDefinition Width="*"/>
  296. </Grid.ColumnDefinitions>
  297. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  298. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  299. <Ellipse Grid.Column="2" Fill="#AAAAAA" Width="18" Margin="3"/>
  300. </Grid>
  301. <Grid Grid.Column="6" Background="#00AA66" Margin="0, 5, 0, 0">
  302. <Grid.ColumnDefinitions>
  303. <ColumnDefinition Width="*"/>
  304. <ColumnDefinition Width="*"/>
  305. <ColumnDefinition Width="*"/>
  306. </Grid.ColumnDefinitions>
  307. <Rectangle Grid.Column="0" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  308. <Rectangle Grid.Column="1" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  309. <Rectangle Grid.Column="2" Fill="#333333" Width="10" Height="15" Margin="0, 0, 0, 5"/>
  310. </Grid>
  311. <Grid Grid.Column="6" Background="#10CC99" Grid.Row="1">
  312. <Grid.ColumnDefinitions>
  313. <ColumnDefinition Width="*"/>
  314. <ColumnDefinition Width="*"/>
  315. <ColumnDefinition Width="*"/>
  316. </Grid.ColumnDefinitions>
  317. <Ellipse Grid.Column="0" Fill="#AAAAAA" Width="18" Margin="3"/>
  318. <Ellipse Grid.Column="1" Fill="#AAAAAA" Width="18" Margin="3"/>
  319. <Ellipse Grid.Column="2" Fill="#AAAAAA" Width="18" Margin="3"/>
  320. </Grid>
  321. </Grid>
  322. <DockPanel DockPanel.Dock="Left" Background="DarkSlateGray">
  323. <Grid DockPanel.Dock="Left" Width="620" Margin="0, 15, 50, 15" Background="#444444">
  324. <Grid.RowDefinitions>
  325. <RowDefinition Height="1.5*"/>
  326. <RowDefinition Height="5*"/>
  327. <RowDefinition Height="2.15*"/>
  328. </Grid.RowDefinitions>
  329. <Grid Grid.Row="0">
  330. <Grid.ColumnDefinitions>
  331. <ColumnDefinition Width="3*"/>
  332. <ColumnDefinition Width="2*"/>
  333. <ColumnDefinition Width="*"/>
  334. <ColumnDefinition Width="*"/>
  335. <ColumnDefinition Width="*"/>
  336. <ColumnDefinition Width="*"/>
  337. <ColumnDefinition Width="1.5*"/>
  338. <ColumnDefinition Width="2*"/>
  339. <ColumnDefinition Width="1.8*"/>
  340. <ColumnDefinition Width="1.8*"/>
  341. <ColumnDefinition Width="1.8*"/>
  342. </Grid.ColumnDefinitions>
  343. <Grid Grid.Column="0" Margin="1,0,1,0" Background="#20CC33">
  344. <Grid.ColumnDefinitions>
  345. <ColumnDefinition Width="*"/>
  346. <ColumnDefinition Width="*"/>
  347. <ColumnDefinition Width="*"/>
  348. </Grid.ColumnDefinitions>
  349. <Grid.RowDefinitions>
  350. <RowDefinition Height="2*"/>
  351. <RowDefinition Height="*"/>
  352. </Grid.RowDefinitions>
  353. <TextBlock Text="RS485" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  354. <TextBlock.RenderTransform>
  355. <TransformGroup>
  356. <RotateTransform Angle="180" />
  357. <TranslateTransform X="65" Y="15"/>
  358. </TransformGroup>
  359. </TextBlock.RenderTransform>
  360. </TextBlock>
  361. <Ellipse Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,6"/>
  362. <Ellipse Fill="Black" Height="20" Grid.Column="1" Margin="6,0,6,6"/>
  363. <Ellipse Fill="Black" Height="20" Grid.Column="2" Margin="6,0,6,6"/>
  364. </Grid>
  365. <Grid Grid.Column="1" Margin="1,0,1,0" Background="#20CC33">
  366. <Grid.ColumnDefinitions>
  367. <ColumnDefinition Width="*"/>
  368. <ColumnDefinition Width="*"/>
  369. </Grid.ColumnDefinitions>
  370. <Grid.RowDefinitions>
  371. <RowDefinition Height="2*"/>
  372. <RowDefinition Height="*"/>
  373. </Grid.RowDefinitions>
  374. <Ellipse Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,8"/>
  375. <Ellipse Fill="Black" Height="20" Grid.Column="2" Margin="6,0,6,8"/>
  376. <TextBlock Text="DC 7±36V" Grid.Row="1" Grid.Column="0" FontSize="7" Foreground="White">
  377. <TextBlock.RenderTransform>
  378. <TransformGroup>
  379. <TranslateTransform X="-55" Y="-15"/>
  380. <RotateTransform Angle="180" />
  381. </TransformGroup>
  382. </TextBlock.RenderTransform>
  383. </TextBlock>
  384. </Grid>
  385. <Grid Grid.Column="2" Margin="1,0,1,0" Background="#20CC33">
  386. <Grid.ColumnDefinitions>
  387. <ColumnDefinition Width="*"/>
  388. </Grid.ColumnDefinitions>
  389. <Grid.RowDefinitions>
  390. <RowDefinition Height="2*"/>
  391. <RowDefinition Height="*"/>
  392. </Grid.RowDefinitions>
  393. <TextBlock Text="TXD" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  394. <TextBlock.RenderTransform>
  395. <TransformGroup>
  396. <RotateTransform Angle="180" />
  397. <TranslateTransform X="30" Y="15"/>
  398. </TransformGroup>
  399. </TextBlock.RenderTransform>
  400. </TextBlock>
  401. <Ellipse Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,8"/>
  402. </Grid>
  403. <Grid Grid.Column="3" Margin="1,0,1,0" Background="#20CC33">
  404. <Grid.ColumnDefinitions>
  405. <ColumnDefinition Width="*"/>
  406. </Grid.ColumnDefinitions>
  407. <Grid.RowDefinitions>
  408. <RowDefinition Height="2*"/>
  409. <RowDefinition Height="*"/>
  410. </Grid.RowDefinitions>
  411. <TextBlock Text="RXD" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  412. <TextBlock.RenderTransform>
  413. <TransformGroup>
  414. <RotateTransform Angle="180" />
  415. <TranslateTransform X="30" Y="15"/>
  416. </TransformGroup>
  417. </TextBlock.RenderTransform>
  418. </TextBlock>
  419. <Ellipse Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,8"/>
  420. </Grid>
  421. <Grid Grid.Column="4" Margin="1,0,1,0" Background="#20CC33">
  422. <Grid.ColumnDefinitions>
  423. <ColumnDefinition Width="*"/>
  424. </Grid.ColumnDefinitions>
  425. <Grid.RowDefinitions>
  426. <RowDefinition Height="2*"/>
  427. <RowDefinition Height="*"/>
  428. </Grid.RowDefinitions>
  429. <TextBlock Text="PWR" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  430. <TextBlock.RenderTransform>
  431. <TransformGroup>
  432. <RotateTransform Angle="180" />
  433. <TranslateTransform X="30" Y="15"/>
  434. </TransformGroup>
  435. </TextBlock.RenderTransform>
  436. </TextBlock>
  437. <Ellipse Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,8"/>
  438. </Grid>
  439. <Grid Grid.Column="5" Margin="1,0,1,0" Background="#20CC33">
  440. <Grid.ColumnDefinitions>
  441. <ColumnDefinition Width="*"/>
  442. </Grid.ColumnDefinitions>
  443. <Grid.RowDefinitions>
  444. <RowDefinition Height="2*"/>
  445. <RowDefinition Height="*"/>
  446. </Grid.RowDefinitions>
  447. <TextBlock Text="RGB" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  448. <TextBlock.RenderTransform>
  449. <TransformGroup>
  450. <RotateTransform Angle="180" />
  451. <TranslateTransform X="30" Y="15"/>
  452. </TransformGroup>
  453. </TextBlock.RenderTransform>
  454. </TextBlock>
  455. <Ellipse Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,8"/>
  456. </Grid>
  457. <Grid Grid.Column="6" Margin="1,0,1,0" Background="#20CC33">
  458. <Grid.ColumnDefinitions>
  459. <ColumnDefinition Width="*"/>
  460. </Grid.ColumnDefinitions>
  461. <Grid.RowDefinitions>
  462. <RowDefinition Height="2*"/>
  463. <RowDefinition Height="*"/>
  464. </Grid.RowDefinitions>
  465. <TextBlock Text="USB" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  466. <TextBlock.RenderTransform>
  467. <TransformGroup>
  468. <RotateTransform Angle="180" />
  469. <TranslateTransform X="35" Y="15"/>
  470. </TransformGroup>
  471. </TextBlock.RenderTransform>
  472. </TextBlock>
  473. <Rectangle Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,8" RadiusX="3" RadiusY="3"/>
  474. </Grid>
  475. <Grid Grid.Column="7" Margin="1,0,1,0" Background="#20CC33">
  476. <Grid.ColumnDefinitions>
  477. <ColumnDefinition Width="*"/>
  478. </Grid.ColumnDefinitions>
  479. <Grid.RowDefinitions>
  480. <RowDefinition Height="2*"/>
  481. <RowDefinition Height="*"/>
  482. </Grid.RowDefinitions>
  483. <TextBlock Text="BUZZER" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  484. <TextBlock.RenderTransform>
  485. <TransformGroup>
  486. <RotateTransform Angle="180" />
  487. <TranslateTransform X="55" Y="15"/>
  488. </TransformGroup>
  489. </TextBlock.RenderTransform>
  490. </TextBlock>
  491. <Rectangle Fill="Black" Height="20" Grid.Column="0" Margin="6,0,6,8" RadiusX="3" RadiusY="3"/>
  492. </Grid>
  493. <Grid Grid.Column="8" Margin="1,0,1,0" Background="#20CC33">
  494. <Grid.ColumnDefinitions>
  495. <ColumnDefinition Width="*"/>
  496. </Grid.ColumnDefinitions>
  497. <Grid.RowDefinitions>
  498. <RowDefinition Height="2*"/>
  499. <RowDefinition Height="*"/>
  500. </Grid.RowDefinitions>
  501. <TextBlock Text="RESET" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  502. <TextBlock.RenderTransform>
  503. <TransformGroup>
  504. <RotateTransform Angle="180" />
  505. <TranslateTransform X="45" Y="15"/>
  506. </TransformGroup>
  507. </TextBlock.RenderTransform>
  508. </TextBlock>
  509. <Rectangle Fill="Black" Width="25" Grid.Column="0" Margin="6,5,6,8" RadiusX="3" RadiusY="3"/>
  510. </Grid>
  511. <Grid Grid.Column="9" Margin="1,0,1,0" Background="#20CC33">
  512. <Grid.ColumnDefinitions>
  513. <ColumnDefinition Width="*"/>
  514. </Grid.ColumnDefinitions>
  515. <Grid.RowDefinitions>
  516. <RowDefinition Height="2*"/>
  517. <RowDefinition Height="*"/>
  518. </Grid.RowDefinitions>
  519. <TextBlock Text="BOOT" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  520. <TextBlock.RenderTransform>
  521. <TransformGroup>
  522. <RotateTransform Angle="180" />
  523. <TranslateTransform X="45" Y="15"/>
  524. </TransformGroup>
  525. </TextBlock.RenderTransform>
  526. </TextBlock>
  527. <Rectangle Fill="Black" Width="25" Grid.Column="0" Margin="6,5,6,8" RadiusX="3" RadiusY="3"/>
  528. </Grid>
  529. <Grid Grid.Column="10" Margin="1,0,1,0" Background="#20CC33">
  530. <Grid.ColumnDefinitions>
  531. <ColumnDefinition Width="*"/>
  532. </Grid.ColumnDefinitions>
  533. <Grid.RowDefinitions>
  534. <RowDefinition Height="2*"/>
  535. <RowDefinition Height="*"/>
  536. </Grid.RowDefinitions>
  537. <TextBlock Text="ANT" Grid.Row="1" Grid.Column="0" FontSize="13" Foreground="White">
  538. <TextBlock.RenderTransform>
  539. <TransformGroup>
  540. <RotateTransform Angle="180" />
  541. <TranslateTransform X="40" Y="15"/>
  542. </TransformGroup>
  543. </TextBlock.RenderTransform>
  544. </TextBlock>
  545. <Rectangle Fill="Black" Width="25" Grid.Column="0" Margin="6,5,6,8" RadiusX="3" RadiusY="3"/>
  546. </Grid>
  547. </Grid>
  548. <Grid Grid.Row="1">
  549. <Grid.RowDefinitions>
  550. <RowDefinition Height="3*"/>
  551. <RowDefinition Height="*"/>
  552. <RowDefinition Height="0.2*"/>
  553. <RowDefinition Height="0.2*"/>
  554. <RowDefinition Height="3*"/>
  555. </Grid.RowDefinitions>
  556. <TextBlock Grid.Row="0" Text="WAVESHARE" Foreground="White" TextAlignment="Center" FontSize="30" Margin="0, 40, 0, 0"/>
  557. <TextBlock Grid.Row="1" Text="share awesome hardware" Foreground="White" TextAlignment="Center" FontSize="15.5" Margin="0, 0, 0, 0"/>
  558. <Rectangle Grid.Row="2" Fill="#20CC33" Margin="150, 0, 150 ,2"/>
  559. <Rectangle Grid.Row="3" Fill="#20CC33" Margin="150, 0, 150 ,2"/>
  560. <TextBlock Grid.Row="4" Text="ESP32-S3-Relay-6CH" Foreground="White" TextAlignment="Center" FontSize="35" FontStyle="Italic" FontWeight="SemiBold" Margin="0, 0, 0, 0"/>
  561. </Grid>
  562. <Grid Grid.Row="2">
  563. <Grid.ColumnDefinitions>
  564. <ColumnDefinition Width="*"/>
  565. <ColumnDefinition Width="*"/>
  566. <ColumnDefinition Width="*"/>
  567. <ColumnDefinition Width="*"/>
  568. <ColumnDefinition Width="*"/>
  569. <ColumnDefinition Width="*"/>
  570. </Grid.ColumnDefinitions>
  571. <Grid Grid.Column="0" Background="{Binding Ch6Active, Converter={StaticResource BooleanToBrushConverter}}">
  572. <Grid.ColumnDefinitions>
  573. <ColumnDefinition Width="*"/>
  574. <ColumnDefinition Width="*"/>
  575. <ColumnDefinition Width="*"/>
  576. </Grid.ColumnDefinitions>
  577. <Grid.RowDefinitions>
  578. <RowDefinition Height="40" />
  579. <RowDefinition Height="*" />
  580. </Grid.RowDefinitions>
  581. <TextBlock Grid.Row="0" Foreground="White" Background="#444444" FontSize="20" Text="CH6" Grid.ColumnSpan="3" TextAlignment="Center"/>
  582. <Rectangle Grid.Row="1" Grid.Column="0" Stroke="White" StrokeThickness="1.5"/>
  583. <Rectangle Grid.Row="1" Grid.Column="1" Stroke="White" StrokeThickness="1.5"/>
  584. <Rectangle Grid.Row="1" Grid.Column="2" Stroke="White" StrokeThickness="1.5"/>
  585. <Ellipse Grid.Row="1" Grid.Column="0" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  586. <Ellipse Grid.Row="1" Grid.Column="1" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  587. <Ellipse Grid.Row="1" Grid.Column="2" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  588. </Grid>
  589. <Grid Grid.Column="1" Background="{Binding Ch5Active, Converter={StaticResource BooleanToBrushConverter}}">
  590. <Grid.ColumnDefinitions>
  591. <ColumnDefinition Width="*"/>
  592. <ColumnDefinition Width="*"/>
  593. <ColumnDefinition Width="*"/>
  594. </Grid.ColumnDefinitions>
  595. <Grid.RowDefinitions>
  596. <RowDefinition Height="40" />
  597. <RowDefinition Height="*" />
  598. </Grid.RowDefinitions>
  599. <TextBlock Grid.Row="0" Foreground="White" Background="#444444" FontSize="20" Text="CH5" Grid.ColumnSpan="3" TextAlignment="Center"/>
  600. <Rectangle Grid.Row="1" Grid.Column="0" Stroke="White" StrokeThickness="1.5"/>
  601. <Rectangle Grid.Row="1" Grid.Column="1" Stroke="White" StrokeThickness="1.5"/>
  602. <Rectangle Grid.Row="1" Grid.Column="2" Stroke="White" StrokeThickness="1.5"/>
  603. <Ellipse Grid.Row="1" Grid.Column="0" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  604. <Ellipse Grid.Row="1" Grid.Column="1" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  605. <Ellipse Grid.Row="1" Grid.Column="2" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  606. </Grid>
  607. <Grid Grid.Column="2" Background="{Binding Ch4Active, Converter={StaticResource BooleanToBrushConverter}}">
  608. <Grid.ColumnDefinitions>
  609. <ColumnDefinition Width="*"/>
  610. <ColumnDefinition Width="*"/>
  611. <ColumnDefinition Width="*"/>
  612. </Grid.ColumnDefinitions>
  613. <Grid.RowDefinitions>
  614. <RowDefinition Height="40" />
  615. <RowDefinition Height="*" />
  616. </Grid.RowDefinitions>
  617. <TextBlock Grid.Row="0" Foreground="White" Background="#444444" FontSize="20" Text="CH4" Grid.ColumnSpan="3" TextAlignment="Center"/>
  618. <Rectangle Grid.Row="1" Grid.Column="0" Stroke="White" StrokeThickness="1.5"/>
  619. <Rectangle Grid.Row="1" Grid.Column="1" Stroke="White" StrokeThickness="1.5"/>
  620. <Rectangle Grid.Row="1" Grid.Column="2" Stroke="White" StrokeThickness="1.5"/>
  621. <Ellipse Grid.Row="1" Grid.Column="0" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  622. <Ellipse Grid.Row="1" Grid.Column="1" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  623. <Ellipse Grid.Row="1" Grid.Column="2" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  624. </Grid>
  625. <Grid Grid.Column="3" Background="{Binding Ch3Active, Converter={StaticResource BooleanToBrushConverter}}">
  626. <Grid.ColumnDefinitions>
  627. <ColumnDefinition Width="*"/>
  628. <ColumnDefinition Width="*"/>
  629. <ColumnDefinition Width="*"/>
  630. </Grid.ColumnDefinitions>
  631. <Grid.RowDefinitions>
  632. <RowDefinition Height="40" />
  633. <RowDefinition Height="*" />
  634. </Grid.RowDefinitions>
  635. <TextBlock Grid.Row="0" Foreground="White" Background="#444444" FontSize="20" Text="CH3" Grid.ColumnSpan="3" TextAlignment="Center"/>
  636. <Rectangle Grid.Row="1" Grid.Column="0" Stroke="White" StrokeThickness="1.5"/>
  637. <Rectangle Grid.Row="1" Grid.Column="1" Stroke="White" StrokeThickness="1.5"/>
  638. <Rectangle Grid.Row="1" Grid.Column="2" Stroke="White" StrokeThickness="1.5"/>
  639. <Ellipse Grid.Row="1" Grid.Column="0" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  640. <Ellipse Grid.Row="1" Grid.Column="1" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  641. <Ellipse Grid.Row="1" Grid.Column="2" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  642. </Grid>
  643. <Grid Grid.Column="4" Background="{Binding Ch2Active, Converter={StaticResource BooleanToBrushConverter}}">
  644. <Grid.ColumnDefinitions>
  645. <ColumnDefinition Width="*"/>
  646. <ColumnDefinition Width="*"/>
  647. <ColumnDefinition Width="*"/>
  648. </Grid.ColumnDefinitions>
  649. <Grid.RowDefinitions>
  650. <RowDefinition Height="40" />
  651. <RowDefinition Height="*" />
  652. </Grid.RowDefinitions>
  653. <TextBlock Grid.Row="0" Foreground="White" Background="#444444" FontSize="20" Text="CH2" Grid.ColumnSpan="3" TextAlignment="Center"/>
  654. <Rectangle Grid.Row="1" Grid.Column="0" Stroke="White" StrokeThickness="1.5"/>
  655. <Rectangle Grid.Row="1" Grid.Column="1" Stroke="White" StrokeThickness="1.5"/>
  656. <Rectangle Grid.Row="1" Grid.Column="2" Stroke="White" StrokeThickness="1.5"/>
  657. <Ellipse Grid.Row="1" Grid.Column="0" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  658. <Ellipse Grid.Row="1" Grid.Column="1" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  659. <Ellipse Grid.Row="1" Grid.Column="2" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  660. </Grid>
  661. <Grid Grid.Column="5" Background="{Binding Ch1Active, Converter={StaticResource BooleanToBrushConverter}}">
  662. <Grid.ColumnDefinitions>
  663. <ColumnDefinition Width="*"/>
  664. <ColumnDefinition Width="*"/>
  665. <ColumnDefinition Width="*"/>
  666. </Grid.ColumnDefinitions>
  667. <Grid.RowDefinitions>
  668. <RowDefinition Height="40" />
  669. <RowDefinition Height="*" />
  670. </Grid.RowDefinitions>
  671. <TextBlock Grid.Row="0" Foreground="White" Background="#444444" FontSize="20" Text="CH1" Grid.ColumnSpan="3" TextAlignment="Center"/>
  672. <Rectangle Grid.Row="1" Grid.Column="0" Stroke="White" StrokeThickness="1.5"/>
  673. <Rectangle Grid.Row="1" Grid.Column="1" Stroke="White" StrokeThickness="1.5"/>
  674. <Rectangle Grid.Row="1" Grid.Column="2" Stroke="White" StrokeThickness="1.5"/>
  675. <Ellipse Grid.Row="1" Grid.Column="0" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  676. <Ellipse Grid.Row="1" Grid.Column="1" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  677. <Ellipse Grid.Row="1" Grid.Column="2" Stroke="White" Margin="10, 4, 10, 20" StrokeThickness="1.5"/>
  678. </Grid>
  679. </Grid>
  680. </Grid>
  681. <Rectangle DockPanel.Dock="Right" Width="30" Height="280" Fill="#3A3A3A"/>
  682. </DockPanel>
  683. </DockPanel>
  684. <Ellipse Width="300" Height="300" Visibility="{Binding LEDElementVisible}">
  685. <Ellipse.RenderTransform>
  686. <TranslateTransform X="25" Y="-230" />
  687. </Ellipse.RenderTransform>
  688. <Ellipse.Fill>
  689. <RadialGradientBrush
  690. GradientOrigin="0.5,0.5"
  691. Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5">
  692. <RadialGradientBrush.GradientStops>
  693. <GradientStop Color="#5555FF" Offset="0" />
  694. <GradientStop Offset="1" />
  695. </RadialGradientBrush.GradientStops>
  696. </RadialGradientBrush>
  697. </Ellipse.Fill>
  698. </Ellipse>
  699. </Grid>
  700. </Window>