ModeSetting.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <Window
  2. x:Class="SHJX.Service.Librarys.MainLibrarys.ModeSetting"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:custom="clr-namespace:CustomUI;assembly=SHJX.Service.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  9. Title="ModeSetting"
  10. Width="230"
  11. Height="315"
  12. AllowsTransparency="True"
  13. Background="Transparent"
  14. ResizeMode="NoResize"
  15. Style="{x:Null}"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.Resources>
  19. <ResourceDictionary>
  20. <ResourceDictionary.MergedDictionaries>
  21. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  22. </ResourceDictionary.MergedDictionaries>
  23. </ResourceDictionary>
  24. </Window.Resources>
  25. <Border
  26. Width="230"
  27. Height="315"
  28. Background="#FFF"
  29. BorderBrush="#99CCCC"
  30. BorderThickness="2"
  31. CornerRadius="15">
  32. <Grid>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="1*" />
  35. <RowDefinition Height="1*" />
  36. <RowDefinition Height="1*" />
  37. <RowDefinition Height="1*" />
  38. <RowDefinition Height="1*" />
  39. <RowDefinition Height="1*" />
  40. <RowDefinition Height="1*" />
  41. <RowDefinition Height="1*" />
  42. <RowDefinition Height="1*" />
  43. </Grid.RowDefinitions>
  44. <Grid Grid.Row="0">
  45. <StackPanel
  46. HorizontalAlignment="Center"
  47. VerticalAlignment="Center"
  48. Orientation="Horizontal">
  49. <TextBox
  50. x:Name="txt_ModeDetail"
  51. Width="200"
  52. Height="25"
  53. pu:TextBoxHelper.CornerRadius="10"
  54. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  55. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  56. pu:TextBoxHelper.IsClearButtonVisible="True"
  57. BorderBrush="#99CCCC"
  58. Foreground="#99CCCC" />
  59. </StackPanel>
  60. </Grid>
  61. <Grid Grid.Row="1">
  62. <Grid.ColumnDefinitions>
  63. <ColumnDefinition Width="1*" />
  64. <ColumnDefinition Width="2*" />
  65. </Grid.ColumnDefinitions>
  66. <Grid Grid.Row="0" Grid.Column="0">
  67. <TextBlock
  68. HorizontalAlignment="Right"
  69. VerticalAlignment="Center"
  70. Foreground="#99CCCC"
  71. Text="取样:" />
  72. </Grid>
  73. <Grid Grid.Row="0" Grid.Column="1">
  74. <TextBox
  75. x:Name="TxtSampleNum"
  76. Width="125"
  77. Height="25"
  78. HorizontalAlignment="Center"
  79. VerticalAlignment="Center"
  80. pu:TextBoxHelper.CornerRadius="10"
  81. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  82. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  83. BorderBrush="#99CCCC"
  84. Foreground="#99CCCC"
  85. Text="{Binding SampleVolume, RelativeSource={RelativeSource AncestorType=Window}}"
  86. TextChanged="TxtSampleNum_TextChanged" />
  87. </Grid>
  88. </Grid>
  89. <Grid Grid.Row="2">
  90. <Grid.ColumnDefinitions>
  91. <ColumnDefinition Width="1*" />
  92. <ColumnDefinition Width="2*" />
  93. </Grid.ColumnDefinitions>
  94. <Grid Grid.Row="0" Grid.Column="0">
  95. <TextBlock
  96. HorizontalAlignment="Right"
  97. VerticalAlignment="Center"
  98. Foreground="#99CCCC"
  99. Text="倍数:" />
  100. </Grid>
  101. <Grid Grid.Row="0" Grid.Column="1">
  102. <TextBox
  103. Name="TxtMultiple"
  104. Width="125"
  105. Height="25"
  106. HorizontalAlignment="Center"
  107. VerticalAlignment="Center"
  108. pu:TextBoxHelper.CornerRadius="10"
  109. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  110. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  111. BorderBrush="#99CCCC"
  112. Foreground="#99CCCC"
  113. Text="1.0" />
  114. </Grid>
  115. </Grid>
  116. <Grid Grid.Row="3">
  117. <Grid.ColumnDefinitions>
  118. <ColumnDefinition Width="1*" />
  119. <ColumnDefinition Width="2*" />
  120. </Grid.ColumnDefinitions>
  121. <Grid Grid.Row="0" Grid.Column="0">
  122. <TextBlock
  123. HorizontalAlignment="Right"
  124. VerticalAlignment="Center"
  125. Foreground="#99CCCC"
  126. Text="硫酸汞:" />
  127. </Grid>
  128. <Grid Grid.Row="0" Grid.Column="1">
  129. <TextBox
  130. x:Name="txt_HgSO"
  131. Width="125"
  132. Height="25"
  133. HorizontalAlignment="Center"
  134. VerticalAlignment="Center"
  135. pu:TextBoxHelper.CornerRadius="10"
  136. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  137. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  138. BorderBrush="#99CCCC"
  139. Foreground="#99CCCC"
  140. Text="2" />
  141. </Grid>
  142. </Grid>
  143. <Grid Grid.Row="4">
  144. <Grid.ColumnDefinitions>
  145. <ColumnDefinition Width="1*" />
  146. <ColumnDefinition Width="1*" />
  147. <ColumnDefinition Width="1*" />
  148. </Grid.ColumnDefinitions>
  149. <Grid Grid.Column="0">
  150. <TextBlock
  151. HorizontalAlignment="Right"
  152. VerticalAlignment="Center"
  153. Foreground="#99CCCC"
  154. Text="样品浓度:" />
  155. </Grid>
  156. <Grid
  157. Grid.Column="1"
  158. Grid.ColumnSpan="2"
  159. HorizontalAlignment="Center"
  160. VerticalAlignment="Center">
  161. <custom:SegmentControl
  162. x:Name="cb_Concentration"
  163. Width="121"
  164. Height="25"
  165. HorizontalAlignment="Center"
  166. VerticalAlignment="Center"
  167. BorderBrush="#99CCCC"
  168. CornerRadius="10"
  169. Cursor="Hand"
  170. FontWeight="Black"
  171. Foreground="#99CCCC"
  172. IsAllRound="True"
  173. SelectedIndex="0">
  174. <custom:SegmentItem
  175. Width="60"
  176. Content="低"
  177. CornerRadius="10"
  178. FontSize="10" />
  179. <custom:SegmentItem
  180. Width="60"
  181. Content="高"
  182. CornerRadius="10"
  183. FontSize="10" />
  184. </custom:SegmentControl>
  185. </Grid>
  186. </Grid>
  187. <Grid
  188. Grid.Row="5"
  189. Grid.Column="0"
  190. Grid.ColumnSpan="2">
  191. <custom:SegmentControl
  192. x:Name="cb_Mode"
  193. Width="195"
  194. Height="25"
  195. HorizontalAlignment="Center"
  196. BorderBrush="#99CCCC"
  197. CornerRadius="5"
  198. Cursor="Hand"
  199. FontWeight="Black"
  200. Foreground="#99CCCC"
  201. SelectedIndex="0"
  202. SelectionChanged="cb_Mode_SelectionChanged">
  203. <custom:SegmentItem
  204. Width="65"
  205. Content="水样"
  206. FontSize="8" />
  207. <custom:SegmentItem
  208. Width="65"
  209. Content="空白"
  210. FontSize="8" />
  211. <custom:SegmentItem
  212. Width="65"
  213. Content="标定"
  214. FontSize="8" />
  215. </custom:SegmentControl>
  216. </Grid>
  217. <Grid Grid.Row="6">
  218. <CheckBox
  219. Name="cb_quick"
  220. Height="25"
  221. HorizontalAlignment="Center"
  222. pu:CheckBoxHelper.BoxHeight="16"
  223. pu:CheckBoxHelper.BoxWidth="24"
  224. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  225. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  226. Content="启动快速滴定"
  227. Cursor="Hand"
  228. FontSize="12"
  229. Foreground="#99CCCC"
  230. IsChecked="False" />
  231. </Grid>
  232. <Grid Grid.Row="7">
  233. <CheckBox
  234. x:Name="cb_send"
  235. Height="25"
  236. HorizontalAlignment="Center"
  237. pu:CheckBoxHelper.BoxHeight="16"
  238. pu:CheckBoxHelper.BoxWidth="24"
  239. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  240. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  241. Content="任务是否下发"
  242. Cursor="Hand"
  243. FontSize="12"
  244. Foreground="#99CCCC"
  245. IsChecked="True" />
  246. </Grid>
  247. <Grid Grid.Row="8">
  248. <UniformGrid Columns="2" Rows="1">
  249. <Button
  250. x:Name="btn_Sure"
  251. Width="60"
  252. Height="25"
  253. pu:ButtonHelper.ClickStyle="Sink"
  254. pu:ButtonHelper.CornerRadius="10"
  255. pu:ButtonHelper.HoverBrush="#66CCCC"
  256. Background="#99CCCC"
  257. Click="btn_Sure_Click"
  258. Content="确定"
  259. Cursor="Hand"
  260. FontFamily="{StaticResource FontAwesome}"
  261. Foreground="White" />
  262. <Button
  263. x:Name="Cancel"
  264. Width="60"
  265. Height="25"
  266. pu:ButtonHelper.ClickStyle="Sink"
  267. pu:ButtonHelper.CornerRadius="10"
  268. pu:ButtonHelper.HoverBrush="#66CCCC"
  269. Background="#99CCCC"
  270. Click="Cancel_Click"
  271. Content="取消"
  272. Cursor="Hand"
  273. FontFamily="{StaticResource FontAwesome}"
  274. Foreground="White" />
  275. </UniformGrid>
  276. </Grid>
  277. </Grid>
  278. </Border>
  279. </Window>