HeatControl.xaml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <UserControl
  2. x:Class="SHJX.Service.Librarys.setting.HeatControl"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  8. d:DesignHeight="1000"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  15. </ResourceDictionary.MergedDictionaries>
  16. <Style x:Key="dgStyle" TargetType="TextBlock">
  17. <Setter Property="TextAlignment" Value="Center" />
  18. <Setter Property="VerticalAlignment" Value="Center" />
  19. </Style>
  20. </ResourceDictionary>
  21. </UserControl.Resources>
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="1*" />
  25. <RowDefinition Height="1*" />
  26. <RowDefinition Height="6*" />
  27. <RowDefinition Height="4*" />
  28. <RowDefinition Height="4*" />
  29. </Grid.RowDefinitions>
  30. <StackPanel
  31. Grid.Row="0"
  32. Width="700"
  33. Margin="0,5"
  34. HorizontalAlignment="Center"
  35. VerticalAlignment="Center"
  36. Background="#99CCCC"
  37. Orientation="Horizontal">
  38. <CheckBox
  39. Height="30"
  40. Margin="10,0"
  41. pu:CheckBoxHelper.BoxHeight="16"
  42. pu:CheckBoxHelper.BoxWidth="24"
  43. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  44. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  45. BorderBrush="White"
  46. Content="开机启动加热"
  47. Foreground="White"
  48. IsChecked="{Binding IsStartHeat, Mode=TwoWay}" />
  49. </StackPanel>
  50. <StackPanel
  51. Grid.Row="1"
  52. Width="700"
  53. Margin="0,5"
  54. HorizontalAlignment="Center"
  55. VerticalAlignment="Center"
  56. Orientation="Horizontal">
  57. <TextBlock
  58. Margin="0,0,5,0"
  59. HorizontalAlignment="Center"
  60. VerticalAlignment="Center"
  61. Foreground="#99CCCC"
  62. Text="预热温度(°C)" />
  63. <TextBox
  64. Width="60"
  65. Height="30"
  66. pu:TextBoxHelper.CornerRadius="10"
  67. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  68. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  69. BorderBrush="#99CCCC"
  70. Foreground="#99CCCC"
  71. Text="{Binding PreheatTemperature}"
  72. Cursor="IBeam" />
  73. <TextBlock
  74. Margin="5,0"
  75. HorizontalAlignment="Center"
  76. VerticalAlignment="Center"
  77. Foreground="#99CCCC"
  78. Text="加水温度(°C)" />
  79. <TextBox
  80. Width="60"
  81. Height="30"
  82. pu:TextBoxHelper.CornerRadius="10"
  83. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  84. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  85. BorderBrush="#99CCCC"
  86. Foreground="#99CCCC"
  87. Text="{Binding AddWaterTemperature}" />
  88. <TextBlock
  89. Margin="5,0"
  90. HorizontalAlignment="Center"
  91. VerticalAlignment="Center"
  92. Foreground="#99CCCC"
  93. Text="冷却管停留(s)" />
  94. <TextBox
  95. Width="60"
  96. Height="30"
  97. pu:TextBoxHelper.CornerRadius="10"
  98. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  99. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  100. BorderBrush="#99CCCC"
  101. Foreground="#99CCCC"
  102. Text="{Binding CoolingPipeWatingTime}" />
  103. <TextBlock
  104. Margin="5,0"
  105. HorizontalAlignment="Center"
  106. VerticalAlignment="Center"
  107. Foreground="#99CCCC"
  108. Text="消解位移动步数" />
  109. <TextBox
  110. Width="60"
  111. Height="30"
  112. pu:TextBoxHelper.CornerRadius="10"
  113. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  114. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  115. BorderBrush="#99CCCC"
  116. Foreground="#99CCCC"
  117. Text="{Binding DissolveMoveDistance}" />
  118. </StackPanel>
  119. <GroupBox
  120. Grid.Row="2"
  121. Width="700"
  122. Height="300"
  123. Margin="0,5"
  124. HorizontalAlignment="Center"
  125. VerticalAlignment="Center"
  126. pu:GroupBoxHelper.CornerRadius="8"
  127. pu:GroupBoxHelper.IsSplitLineVisible="True"
  128. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  129. BorderBrush="#99CCCC"
  130. Foreground="#99CCCC"
  131. Header="加热步骤">
  132. <Grid Grid.Row="2">
  133. <DataGrid
  134. x:Name="DgCustom"
  135. Width="685"
  136. Height="250"
  137. pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
  138. pu:DataGridHelper.HeaderBackground="#5099CCCC"
  139. pu:DataGridHelper.HeaderForeground="White"
  140. pu:DataGridHelper.HeaderMinHeight="45"
  141. pu:DataGridHelper.HoverBackground="#5066CCCC"
  142. pu:DataGridHelper.SelectedBackground="#5099CCCC"
  143. BorderBrush="#99CCCC"
  144. CanUserAddRows="False"
  145. Foreground="#99CCCC"
  146. ItemsSource="{Binding HeatData, Mode=TwoWay}">
  147. <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  148. <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
  149. <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
  150. <Style.Triggers>
  151. <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
  152. <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
  153. </DataTrigger>
  154. </Style.Triggers>
  155. </Style>
  156. </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  157. </DataGrid>
  158. </Grid>
  159. </GroupBox>
  160. <GroupBox
  161. Grid.Row="3"
  162. Width="700"
  163. Height="200"
  164. Margin="0,5,0,5"
  165. HorizontalAlignment="Center"
  166. VerticalAlignment="Center"
  167. pu:GroupBoxHelper.CornerRadius="8"
  168. pu:GroupBoxHelper.IsSplitLineVisible="True"
  169. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  170. BorderBrush="#99CCCC"
  171. Foreground="#99CCCC"
  172. Header="PID">
  173. <DataGrid
  174. Width="685"
  175. Height="150"
  176. pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
  177. pu:DataGridHelper.HeaderBackground="#5099CCCC"
  178. pu:DataGridHelper.HeaderForeground="White"
  179. pu:DataGridHelper.HeaderMinHeight="45"
  180. pu:DataGridHelper.HoverBackground="#5066CCCC"
  181. pu:DataGridHelper.SelectedBackground="#5099CCCC"
  182. BorderBrush="#99CCCC"
  183. CanUserAddRows="False"
  184. Foreground="#99CCCC"
  185. ItemsSource="{Binding PIDs, Mode=TwoWay}">
  186. <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  187. <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
  188. <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
  189. <Style.Triggers>
  190. <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
  191. <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
  192. </DataTrigger>
  193. </Style.Triggers>
  194. </Style>
  195. </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  196. </DataGrid>
  197. </GroupBox>
  198. </Grid>
  199. </UserControl>