TitrationControl.xaml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <UserControl
  2. x:Class="SHJX.Service.Librarys.setting.TitrationControl"
  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="600"
  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. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition />
  21. <RowDefinition />
  22. </Grid.RowDefinitions>
  23. <GroupBox
  24. Grid.Row="0"
  25. Width="700"
  26. Height="250"
  27. Margin="0,5,0,5"
  28. HorizontalAlignment="Center"
  29. VerticalAlignment="Top"
  30. pu:GroupBoxHelper.CornerRadius="8"
  31. pu:GroupBoxHelper.IsSplitLineVisible="True"
  32. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  33. BorderBrush="#99CCCC"
  34. Foreground="#99CCCC"
  35. Header="滴定">
  36. <Grid>
  37. <Grid.RowDefinitions>
  38. <RowDefinition />
  39. <RowDefinition />
  40. <RowDefinition />
  41. <RowDefinition />
  42. <RowDefinition />
  43. <RowDefinition />
  44. </Grid.RowDefinitions>
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition />
  47. <ColumnDefinition />
  48. </Grid.ColumnDefinitions>
  49. <Grid Grid.Row="0" Grid.Column="0">
  50. <TextBlock
  51. Margin="0,0,80,0"
  52. HorizontalAlignment="Right"
  53. VerticalAlignment="Center"
  54. Text="平衡阈值(低浓度):" />
  55. </Grid>
  56. <Grid Grid.Row="1" Grid.Column="0">
  57. <TextBlock
  58. Margin="0,0,80,0"
  59. HorizontalAlignment="Right"
  60. VerticalAlignment="Center"
  61. Text="平衡阈值(高浓度):" />
  62. </Grid>
  63. <Grid Grid.Row="2" Grid.Column="0">
  64. <TextBlock
  65. Margin="0,0,80,0"
  66. HorizontalAlignment="Right"
  67. VerticalAlignment="Center"
  68. Text="平衡后等待时长(s):" />
  69. </Grid>
  70. <Grid Grid.Row="3" Grid.Column="0">
  71. <TextBlock
  72. Margin="0,0,80,0"
  73. HorizontalAlignment="Right"
  74. VerticalAlignment="Center"
  75. Text="滴定前等待时长(s):" />
  76. </Grid>
  77. <Grid Grid.Row="4" Grid.Column="0">
  78. <TextBlock
  79. Margin="0,0,80,0"
  80. HorizontalAlignment="Right"
  81. VerticalAlignment="Center"
  82. Text="最大滴定体积(ml):" />
  83. </Grid>
  84. <Grid Grid.Row="5" Grid.Column="0">
  85. <TextBlock
  86. Margin="0,0,80,0"
  87. HorizontalAlignment="Right"
  88. VerticalAlignment="Center"
  89. Text="快速滴定值(ml):" />
  90. </Grid>
  91. <Grid Grid.Row="0" Grid.Column="1">
  92. <TextBox
  93. Width="160"
  94. Height="30"
  95. pu:TextBoxHelper.CornerRadius="10"
  96. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  97. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  98. BorderBrush="#99CCCC"
  99. Foreground="#99CCCC"
  100. Text="{Binding Titration.LowValue}" />
  101. </Grid>
  102. <Grid Grid.Row="1" Grid.Column="1">
  103. <TextBox
  104. Width="160"
  105. Height="30"
  106. pu:TextBoxHelper.CornerRadius="10"
  107. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  108. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  109. BorderBrush="#99CCCC"
  110. Foreground="#99CCCC"
  111. Text="{Binding Titration.HighValue}" />
  112. </Grid>
  113. <Grid Grid.Row="2" Grid.Column="1">
  114. <TextBox
  115. Width="160"
  116. Height="30"
  117. pu:TextBoxHelper.CornerRadius="10"
  118. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  119. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  120. BorderBrush="#99CCCC"
  121. Foreground="#99CCCC"
  122. Text="{Binding Titration.AfterWaitTime}" />
  123. </Grid>
  124. <Grid Grid.Row="3" Grid.Column="1">
  125. <TextBox
  126. Width="160"
  127. Height="30"
  128. pu:TextBoxHelper.CornerRadius="10"
  129. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  130. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  131. BorderBrush="#99CCCC"
  132. Foreground="#99CCCC"
  133. Text="{Binding Titration.BeforeWaitTime}" />
  134. </Grid>
  135. <Grid Grid.Row="4" Grid.Column="1">
  136. <TextBox
  137. Width="160"
  138. Height="30"
  139. pu:TextBoxHelper.CornerRadius="10"
  140. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  141. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  142. BorderBrush="#99CCCC"
  143. Foreground="#99CCCC"
  144. Text="{Binding Titration.MaxVolume}" />
  145. </Grid>
  146. <Grid Grid.Row="5" Grid.Column="1">
  147. <TextBox
  148. Width="160"
  149. Height="30"
  150. pu:TextBoxHelper.CornerRadius="10"
  151. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  152. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  153. BorderBrush="#99CCCC"
  154. Foreground="#99CCCC"
  155. Text="{Binding Titration.QuickTitrationValue}" />
  156. </Grid>
  157. </Grid>
  158. </GroupBox>
  159. <GroupBox
  160. Grid.Row="1"
  161. Width="700"
  162. Height="250"
  163. Margin="0,5,0,5"
  164. HorizontalAlignment="Center"
  165. VerticalAlignment="Top"
  166. pu:GroupBoxHelper.CornerRadius="8"
  167. pu:GroupBoxHelper.IsSplitLineVisible="True"
  168. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  169. BorderBrush="#99CCCC"
  170. Foreground="#99CCCC"
  171. Header="滴液体积">
  172. <DataGrid
  173. Width="685"
  174. Height="205"
  175. pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
  176. pu:DataGridHelper.HeaderBackground="#5099CCCC"
  177. pu:DataGridHelper.HeaderForeground="White"
  178. pu:DataGridHelper.HeaderMinHeight="45"
  179. pu:DataGridHelper.HoverBackground="#5066CCCC"
  180. pu:DataGridHelper.SelectedBackground="#5099CCCC"
  181. BorderBrush="#99CCCC"
  182. CanUserAddRows="False"
  183. Foreground="#99CCCC"
  184. ItemsSource="{Binding LiquidAmount, Mode=TwoWay}">
  185. <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  186. <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
  187. <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
  188. <Style.Triggers>
  189. <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
  190. <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
  191. </DataTrigger>
  192. </Style.Triggers>
  193. </Style>
  194. </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  195. </DataGrid>
  196. </GroupBox>
  197. </Grid>
  198. </UserControl>