InputDialog.xaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <Window
  2. x:Class="SHJX.Service.CustomControl.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  9. Title="InputDialog"
  10. Width="250"
  11. Height="200"
  12. VerticalAlignment="Center"
  13. AllowsTransparency="True"
  14. BorderThickness="2"
  15. Loaded="Window_Loaded"
  16. ResizeMode="NoResize"
  17. WindowStartupLocation="CenterScreen"
  18. WindowStyle="None"
  19. mc:Ignorable="d">
  20. <Window.Effect>
  21. <DropShadowEffect
  22. BlurRadius="24"
  23. Direction="90"
  24. ShadowDepth="3"
  25. Color="#99CCCC" />
  26. </Window.Effect>
  27. <Window.Resources>
  28. <ResourceDictionary>
  29. <ResourceDictionary.MergedDictionaries>
  30. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  31. </ResourceDictionary.MergedDictionaries>
  32. </ResourceDictionary>
  33. </Window.Resources>
  34. <Grid>
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="0.7*" />
  37. <RowDefinition Height="3*" />
  38. <RowDefinition Height="1*" />
  39. </Grid.RowDefinitions>
  40. <StackPanel
  41. Grid.Row="0"
  42. Grid.Column="0"
  43. Grid.ColumnSpan="2"
  44. Background="#99CCCC"
  45. MouseMove="StackPanel_MouseMove"
  46. Orientation="Horizontal">
  47. <Image
  48. Grid.RowSpan="3"
  49. Grid.Column="0"
  50. Width="18"
  51. Height="18"
  52. Margin="10,0,5,0"
  53. HorizontalAlignment="Left"
  54. VerticalAlignment="Center"
  55. Source="/SHJX.Service.Resource;component/Resources/输入.png" />
  56. <TextBlock
  57. VerticalAlignment="Center"
  58. FontFamily="幼圆"
  59. FontSize="10"
  60. FontWeight="Black"
  61. Foreground="White"
  62. Text="输入"
  63. TextAlignment="Center" />
  64. </StackPanel>
  65. <UniformGrid
  66. Grid.Row="1"
  67. Grid.Column="1"
  68. Rows="3">
  69. <StackPanel
  70. HorizontalAlignment="Center"
  71. VerticalAlignment="Center"
  72. Orientation="Horizontal">
  73. <TextBox
  74. x:Name="txt_point"
  75. Width="206"
  76. Height="30"
  77. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  78. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  79. pu:TextBoxHelper.Icon="&#xf11c;"
  80. pu:TextBoxHelper.Watermark="请输入数字(1~48)"
  81. Foreground="#99CCCC" />
  82. </StackPanel>
  83. <Grid Grid.Column="0" Grid.ColumnSpan="2">
  84. <My:SegmentControl
  85. x:Name="cb_concentration"
  86. Width="123"
  87. Height="30"
  88. HorizontalAlignment="Center"
  89. BorderBrush="#99CCCC"
  90. Cursor="Hand"
  91. Foreground="#99CCCC"
  92. SelectedIndex="0">
  93. <My:SegmentItem Content="高浓度" FontSize="10" />
  94. <My:SegmentItem Content="低浓度" FontSize="10" />
  95. </My:SegmentControl>
  96. </Grid>
  97. <Grid Grid.Column="0" Grid.ColumnSpan="2">
  98. <My:SegmentControl
  99. x:Name="cb_Mode"
  100. Width="180"
  101. Height="30"
  102. HorizontalAlignment="Center"
  103. BorderBrush="#99CCCC"
  104. Cursor="Hand"
  105. Foreground="#99CCCC"
  106. SelectedIndex="0">
  107. <My:SegmentItem Content="水样" FontSize="10" Width="60" />
  108. <My:SegmentItem Content="空白" FontSize="10" Width="60" />
  109. <My:SegmentItem Content="标定" FontSize="10" Width="60" />
  110. </My:SegmentControl>
  111. </Grid>
  112. </UniformGrid>
  113. <WrapPanel
  114. Grid.Row="2"
  115. Grid.ColumnSpan="2"
  116. HorizontalAlignment="Center"
  117. VerticalAlignment="Center">
  118. <Button
  119. Name="btnDialogOk"
  120. Width="60"
  121. Height="30"
  122. Margin="10,0"
  123. pu:ButtonHelper.ClickStyle="Sink"
  124. pu:ButtonHelper.CornerRadius="12"
  125. pu:ButtonHelper.HoverBrush="#66CCCC"
  126. Background="#99CCCC"
  127. Click="btnDialogOk_Click"
  128. Content="确定"
  129. Cursor="Hand"
  130. Foreground="#FFF" />
  131. <Button
  132. Height="30"
  133. MinWidth="60"
  134. Margin="10,0"
  135. pu:ButtonHelper.ClickStyle="Sink"
  136. pu:ButtonHelper.CornerRadius="12"
  137. pu:ButtonHelper.HoverBrush="#66CCCC"
  138. Background="#99CCCC"
  139. Content="取消"
  140. Cursor="Hand"
  141. Foreground="#FFF"
  142. IsCancel="True" />
  143. </WrapPanel>
  144. </Grid>
  145. </Window>