终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

178 řádky
8.7 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.FoodStationTest.View.ProcessMonitorView"
  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.FoodStationTest.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.FoodStationTest.ViewModel"
  9. d:DesignHeight="1080"
  10. d:DesignWidth="1920"
  11. mc:Ignorable="d">
  12. <UserControl.DataContext>
  13. <vm:ProcessMonitorViewModel />
  14. </UserControl.DataContext>
  15. <Border BorderBrush="{StaticResource bordColor}" BorderThickness="0">
  16. <Grid Margin="0,10">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="60" />
  19. <RowDefinition />
  20. </Grid.RowDefinitions>
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="2*" />
  24. <ColumnDefinition Width="4*" />
  25. <ColumnDefinition Width="4*" />
  26. <ColumnDefinition Width="12*" />
  27. <ColumnDefinition Width="6*" />
  28. <ColumnDefinition Width="17" />
  29. </Grid.ColumnDefinitions>
  30. <Grid>
  31. <TextBlock
  32. HorizontalAlignment="Center"
  33. VerticalAlignment="Center"
  34. FontSize="32"
  35. Foreground="Aqua"
  36. Text="序号" />
  37. <Border
  38. BorderBrush="{StaticResource bordColor}"
  39. BorderThickness="1,1,0,0"
  40. Cursor="SizeWE" />
  41. </Grid>
  42. <Grid Grid.Column="1">
  43. <TextBlock
  44. HorizontalAlignment="Center"
  45. VerticalAlignment="Center"
  46. FontSize="32"
  47. Foreground="Aqua"
  48. Text="名称" />
  49. <Border
  50. BorderBrush="{StaticResource bordColor}"
  51. BorderThickness="1,1,0,0"
  52. Cursor="SizeWE" />
  53. </Grid>
  54. <Grid Grid.Column="2">
  55. <TextBlock
  56. HorizontalAlignment="Center"
  57. VerticalAlignment="Center"
  58. FontSize="32"
  59. Foreground="Aqua"
  60. Text="类型" />
  61. <Border
  62. BorderBrush="{StaticResource bordColor}"
  63. BorderThickness="1,1,0,0"
  64. Cursor="SizeWE" />
  65. </Grid>
  66. <Grid Grid.Column="3">
  67. <TextBlock
  68. HorizontalAlignment="Center"
  69. VerticalAlignment="Center"
  70. FontSize="32"
  71. Foreground="Aqua"
  72. Text="描述" />
  73. <Border
  74. BorderBrush="{StaticResource bordColor}"
  75. BorderThickness="1,1,0,0"
  76. Cursor="SizeWE" />
  77. </Grid>
  78. <Grid Grid.Column="4">
  79. <TextBlock
  80. HorizontalAlignment="Center"
  81. VerticalAlignment="Center"
  82. FontSize="32"
  83. Foreground="Aqua"
  84. Text="当前值" />
  85. <Border
  86. BorderBrush="{StaticResource bordColor}"
  87. BorderThickness="1,1,0,0"
  88. Cursor="SizeWE" />
  89. </Grid>
  90. </Grid>
  91. <Grid Grid.Row="1">
  92. <ScrollViewer>
  93. <ItemsControl Foreground="Aqua" ItemsSource="{Binding plcInfos}">
  94. <ItemsControl.ItemTemplate>
  95. <DataTemplate>
  96. <Grid>
  97. <Grid.ColumnDefinitions>
  98. <ColumnDefinition Width="2*" />
  99. <ColumnDefinition Width="4*" />
  100. <ColumnDefinition Width="4*" />
  101. <ColumnDefinition Width="12*" />
  102. <ColumnDefinition Width="6*" />
  103. </Grid.ColumnDefinitions>
  104. <Grid>
  105. <TextBlock
  106. Margin="5"
  107. HorizontalAlignment="Center"
  108. VerticalAlignment="Center"
  109. FontSize="16"
  110. Foreground="Aqua"
  111. Text="{Binding Count}" />
  112. <Border
  113. BorderBrush="{StaticResource bordColor}"
  114. BorderThickness="1"
  115. Cursor="SizeWE" />
  116. </Grid>
  117. <Grid Grid.Column="1">
  118. <TextBlock
  119. Margin="5"
  120. HorizontalAlignment="Left"
  121. VerticalAlignment="Center"
  122. FontSize="16"
  123. Foreground="Aqua"
  124. Text="{Binding Name}" />
  125. <Border
  126. BorderBrush="{StaticResource bordColor}"
  127. BorderThickness="1"
  128. Cursor="SizeWE" />
  129. </Grid>
  130. <Grid Grid.Column="2">
  131. <TextBlock
  132. Margin="5"
  133. HorizontalAlignment="Left"
  134. VerticalAlignment="Center"
  135. FontSize="16"
  136. Foreground="Aqua"
  137. Text="{Binding Type}" />
  138. <Border
  139. BorderBrush="{StaticResource bordColor}"
  140. BorderThickness="1"
  141. Cursor="SizeWE" />
  142. </Grid>
  143. <Grid Grid.Column="3">
  144. <TextBlock
  145. Margin="5"
  146. HorizontalAlignment="Left"
  147. VerticalAlignment="Center"
  148. FontSize="14"
  149. Foreground="Aqua"
  150. Text="{Binding Describe}" />
  151. <Border
  152. BorderBrush="{StaticResource bordColor}"
  153. BorderThickness="1"
  154. Cursor="SizeWE" />
  155. </Grid>
  156. <Grid Grid.Column="4">
  157. <TextBlock
  158. Margin="5"
  159. HorizontalAlignment="Center"
  160. VerticalAlignment="Center"
  161. FontSize="16"
  162. Foreground="Aqua"
  163. Text="{Binding Value}" />
  164. <Border
  165. BorderBrush="{StaticResource bordColor}"
  166. BorderThickness="1"
  167. Cursor="SizeWE" />
  168. </Grid>
  169. </Grid>
  170. </DataTemplate>
  171. </ItemsControl.ItemTemplate>
  172. </ItemsControl>
  173. </ScrollViewer>
  174. </Grid>
  175. </Grid>
  176. </Border>
  177. </UserControl>