InputDialog.xaml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <Window
  2. x:Class="SHJX.Service.Library.Views.CustomDialog.InputDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:My="clr-namespace:CustomUI"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:SHJX.Service.Library.Views.CustomDialog"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  11. Title="InputDialog"
  12. Width="190"
  13. Height="220"
  14. VerticalAlignment="Center"
  15. AllowsTransparency="True"
  16. BorderThickness="2"
  17. Loaded="Window_Loaded"
  18. ResizeMode="NoResize"
  19. WindowStartupLocation="CenterScreen"
  20. WindowStyle="None"
  21. mc:Ignorable="d">
  22. <Window.Effect>
  23. <DropShadowEffect
  24. BlurRadius="14"
  25. Direction="300"
  26. ShadowDepth="3"
  27. Color="#6452A4" />
  28. </Window.Effect>
  29. <Window.Resources>
  30. <ResourceDictionary>
  31. <ResourceDictionary.MergedDictionaries>
  32. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  33. </ResourceDictionary.MergedDictionaries>
  34. </ResourceDictionary>
  35. </Window.Resources>
  36. <Grid>
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="1*" />
  39. <RowDefinition Height="2*" />
  40. <RowDefinition Height="2*" />
  41. <RowDefinition Height="2*" />
  42. <RowDefinition Height="2*" />
  43. <RowDefinition Height="2*" />
  44. <RowDefinition Height="2*" />
  45. </Grid.RowDefinitions>
  46. <StackPanel
  47. Grid.Row="0"
  48. Grid.Column="0"
  49. Grid.ColumnSpan="2"
  50. Margin="0,0,0,0"
  51. VerticalAlignment="Center"
  52. Background="#6452A4"
  53. MouseMove="StackPanel_MouseMove"
  54. Orientation="Horizontal">
  55. <Image
  56. Grid.RowSpan="3"
  57. Grid.Column="0"
  58. Width="18"
  59. Height="18"
  60. Margin="10,0,0,0"
  61. HorizontalAlignment="Left"
  62. VerticalAlignment="Center"
  63. Source="/SHJX.Service.Resource;component/Photo/输入.png" />
  64. <TextBlock
  65. VerticalAlignment="Center"
  66. FontSize="10"
  67. FontWeight="Black"
  68. Foreground="White"
  69. Text="输入"
  70. TextAlignment="Center" />
  71. </StackPanel>
  72. <StackPanel
  73. Grid.Row="1"
  74. HorizontalAlignment="Center"
  75. VerticalAlignment="Center"
  76. Orientation="Horizontal">
  77. <TextBox
  78. x:Name="txt_point"
  79. Width="180"
  80. Height="25"
  81. pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
  82. pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
  83. pu:TextBoxHelper.Icon="&#xf11c;"
  84. pu:TextBoxHelper.Watermark="请输入编号(1~55)"
  85. Cursor="IBeam" />
  86. </StackPanel>
  87. <Grid Grid.Row="2">
  88. <Grid.ColumnDefinitions>
  89. <ColumnDefinition Width="2*" />
  90. <ColumnDefinition Width="3*" />
  91. </Grid.ColumnDefinitions>
  92. <Grid
  93. Grid.Row="0"
  94. Grid.Column="0"
  95. HorizontalAlignment="Center">
  96. <TextBlock
  97. HorizontalAlignment="Center"
  98. VerticalAlignment="Center"
  99. Text="取样体积:" />
  100. </Grid>
  101. <Grid Grid.Row="0" Grid.Column="1">
  102. <TextBox
  103. x:Name="txt_volume"
  104. Width="110"
  105. Height="25"
  106. HorizontalAlignment="Left"
  107. VerticalAlignment="Center"
  108. pu:TextBoxHelper.CornerRadius="10"
  109. pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
  110. pu:TextBoxHelper.FocusedShadowColor="#6452A4"
  111. Cursor="IBeam"
  112. TextChanged="txt_volume_TextChanged" />
  113. </Grid>
  114. </Grid>
  115. <Grid Grid.Row="3">
  116. <Grid.ColumnDefinitions>
  117. <ColumnDefinition Width="2*" />
  118. <ColumnDefinition Width="3*" />
  119. </Grid.ColumnDefinitions>
  120. <Grid
  121. Grid.Row="0"
  122. Grid.Column="0"
  123. HorizontalAlignment="Center">
  124. <TextBlock
  125. HorizontalAlignment="Center"
  126. VerticalAlignment="Center"
  127. Text="取样倍数:" />
  128. </Grid>
  129. <Grid Grid.Row="0" Grid.Column="1">
  130. <TextBox
  131. x:Name="txt_multiple"
  132. Width="110"
  133. Height="25"
  134. HorizontalAlignment="Left"
  135. VerticalAlignment="Center"
  136. pu:TextBoxHelper.CornerRadius="10"
  137. pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
  138. pu:TextBoxHelper.FocusedShadowColor="#6452A4"
  139. Cursor="IBeam"
  140. IsEnabled="False"
  141. IsReadOnly="True" />
  142. </Grid>
  143. </Grid>
  144. <Grid Grid.Row="4">
  145. <Grid.ColumnDefinitions>
  146. <ColumnDefinition Width="1*" />
  147. <ColumnDefinition Width="2*" />
  148. </Grid.ColumnDefinitions>
  149. <Grid Grid.Column="0" Grid.ColumnSpan="2">
  150. <Grid>
  151. <Grid.ColumnDefinitions>
  152. <ColumnDefinition Width="2*" />
  153. <ColumnDefinition Width="1*" />
  154. </Grid.ColumnDefinitions>
  155. <My:SegmentControl
  156. x:Name="cb_mode"
  157. Grid.Column="0"
  158. Width="95"
  159. Height="25"
  160. Margin="0,0,5,0"
  161. HorizontalAlignment="Right"
  162. BorderBrush="#6452A4"
  163. Cursor="Hand"
  164. SelectionChanged="cb_mode_SelectionChanged">
  165. <My:SegmentItem Content="样品" FontSize="8" />
  166. <My:SegmentItem Content="空白" FontSize="8" />
  167. </My:SegmentControl>
  168. <CheckBox
  169. x:Name="cb_calibration"
  170. Grid.Column="1"
  171. Width="45"
  172. Height="25"
  173. HorizontalAlignment="Left"
  174. pu:CheckBoxHelper.CheckBoxStyle="Button"
  175. pu:CheckBoxHelper.CheckedBackground="#6452A4"
  176. pu:CheckBoxHelper.CornerRadius="7"
  177. BorderBrush="#6452A4"
  178. BorderThickness="1"
  179. Content="标定"
  180. Cursor="Hand"
  181. FontSize="8" />
  182. </Grid>
  183. </Grid>
  184. </Grid>
  185. <Grid Grid.Row="5">
  186. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  187. <RadioButton
  188. Name="rb_acid"
  189. Height="30"
  190. Margin="0,0,5,0"
  191. pu:RadioButtonHelper.BoxHeight="16"
  192. pu:RadioButtonHelper.BoxWidth="16"
  193. pu:RadioButtonHelper.CheckedBackground="#6452A4"
  194. Background="#326452A4"
  195. Content="酸性"
  196. Cursor="Hand" />
  197. <RadioButton
  198. Name="rb_alkali"
  199. Height="30"
  200. Margin="5,0,0,0"
  201. pu:RadioButtonHelper.BoxHeight="16"
  202. pu:RadioButtonHelper.BoxWidth="16"
  203. pu:RadioButtonHelper.CheckedBackground="#6452A4"
  204. Background="#326452A4"
  205. Content="碱性"
  206. Cursor="Hand" />
  207. </StackPanel>
  208. </Grid>
  209. <WrapPanel
  210. Grid.Row="6"
  211. HorizontalAlignment="Center"
  212. VerticalAlignment="Center">
  213. <Button
  214. Name="btnDialogOk"
  215. Width="60"
  216. Height="25"
  217. Margin="0,0,5,0"
  218. pu:ButtonHelper.ButtonStyle="Hollow"
  219. pu:ButtonHelper.ClickStyle="Sink"
  220. pu:ButtonHelper.CornerRadius="10"
  221. pu:ButtonHelper.HoverBrush="#929FDE"
  222. Background="#6452A4"
  223. BorderBrush="#6452A4"
  224. Click="btnDialogOk_Click"
  225. Content="确定"
  226. Cursor="Hand"
  227. Foreground="#FFF" />
  228. <Button
  229. Height="25"
  230. MinWidth="60"
  231. Margin="4,0"
  232. pu:ButtonHelper.ButtonStyle="Hollow"
  233. pu:ButtonHelper.ClickStyle="Sink"
  234. pu:ButtonHelper.CornerRadius="10"
  235. pu:ButtonHelper.HoverBrush="#929FDE"
  236. Background="#6452A4"
  237. BorderBrush="#6452A4"
  238. Content="取消"
  239. Cursor="Hand"
  240. Foreground="#FFF"
  241. IsCancel="True" />
  242. </WrapPanel>
  243. </Grid>
  244. </Window>