SampleDetailControl.xaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <UserControl
  2. x:Class="SHJX.Service.Library.Views.SampleDetailControl"
  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:local="clr-namespace:SHJX.Service.Library.Views"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  9. mc:Ignorable="d">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Border
  18. Margin="2"
  19. Background="#F6FBFF"
  20. BorderBrush="#929FDE"
  21. BorderThickness="1"
  22. CornerRadius="10">
  23. <Grid Background="Transparent">
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="2*" />
  26. <RowDefinition Height="3*" />
  27. <RowDefinition Height="0.1*" />
  28. <RowDefinition Height="3*" />
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="auto" />
  32. <ColumnDefinition Width="4*" />
  33. <ColumnDefinition Width="2*" />
  34. </Grid.ColumnDefinitions>
  35. <Border
  36. x:Name="UserControlTag"
  37. Grid.Row="0"
  38. Grid.Column="0"
  39. Grid.ColumnSpan="3"
  40. Background="#929FDE"
  41. BorderBrush="#83919F"
  42. CornerRadius="9,9,0,0" />
  43. <Grid
  44. Grid.Row="0"
  45. Grid.Column="0"
  46. HorizontalAlignment="Left"
  47. Background="Transparent">
  48. <Button
  49. x:Name="btn_TagNo"
  50. Width="16"
  51. Height="16"
  52. Margin="10,0,0,0"
  53. Background="#F6FBFF"
  54. FontSize="9"
  55. FontWeight="Bold"
  56. Foreground="Black">
  57. <Button.Template>
  58. <ControlTemplate TargetType="{x:Type Button}">
  59. <Border
  60. BorderBrush="{TemplateBinding Control.BorderBrush}"
  61. BorderThickness="0"
  62. CornerRadius="33,33,33,33">
  63. <Border.Background>
  64. <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
  65. <GradientStop Offset="0.1" Color="#F6FBFF" />
  66. <GradientStop Offset="0.7" Color="#D5D5D5" />
  67. <GradientStop Offset="0.0" Color="#F6FBFF" />
  68. </LinearGradientBrush>
  69. </Border.Background>
  70. <ContentPresenter
  71. HorizontalAlignment="Center"
  72. VerticalAlignment="Center"
  73. Content="{TemplateBinding ContentControl.Content}" />
  74. </Border>
  75. </ControlTemplate>
  76. </Button.Template>
  77. </Button>
  78. </Grid>
  79. <Grid
  80. Grid.Row="0"
  81. Grid.Column="1"
  82. Background="Transparent">
  83. <TextBlock
  84. x:Name="txt_detail"
  85. HorizontalAlignment="Center"
  86. VerticalAlignment="Center"
  87. FontSize="10"
  88. FontWeight="UltraBlack" />
  89. </Grid>
  90. <Grid
  91. Grid.Row="0"
  92. Grid.Column="2"
  93. Background="Transparent">
  94. <Button
  95. x:Name="ChooseMode"
  96. Width="20"
  97. Height="20"
  98. HorizontalAlignment="Right"
  99. pu:ButtonHelper.ClickStyle="Sink"
  100. pu:ButtonHelper.CornerRadius="15"
  101. pu:ButtonHelper.HoverBrush="Transparent"
  102. Background="Transparent"
  103. Click="ChooseMode_Click"
  104. Cursor="Hand">
  105. <Image
  106. Width="18"
  107. Height="25"
  108. Source="/SHJX.Service.Resource;component/LibResource/点点点.png" />
  109. </Button>
  110. </Grid>
  111. <Grid
  112. Grid.Row="1"
  113. Grid.Column="0"
  114. HorizontalAlignment="Left">
  115. <TextBlock
  116. Margin="5,0"
  117. HorizontalAlignment="Center"
  118. VerticalAlignment="Center"
  119. FontSize="12"
  120. Foreground="#4D6172"
  121. Text="体积:" />
  122. </Grid>
  123. <Grid
  124. Grid.Row="1"
  125. Grid.Column="1"
  126. Grid.ColumnSpan="2"
  127. HorizontalAlignment="Right">
  128. <TextBlock
  129. x:Name="txt_volume"
  130. Margin="5,0"
  131. HorizontalAlignment="Center"
  132. VerticalAlignment="Center"
  133. FontSize="12"
  134. Text="{Binding LiquidAmount}" />
  135. </Grid>
  136. <GridSplitter
  137. Grid.Row="2"
  138. Grid.ColumnSpan="3"
  139. Height="1"
  140. Margin="3,0,3,0"
  141. HorizontalAlignment="Stretch"
  142. Background="#4D6172" />
  143. <Grid
  144. Grid.Row="3"
  145. Grid.Column="0"
  146. HorizontalAlignment="Left">
  147. <TextBlock
  148. Margin="5,0"
  149. HorizontalAlignment="Center"
  150. VerticalAlignment="Center"
  151. FontSize="12"
  152. Foreground="#4D6172"
  153. Text="结果:" />
  154. </Grid>
  155. <Grid
  156. Grid.Row="3"
  157. Grid.Column="1"
  158. Grid.ColumnSpan="2"
  159. HorizontalAlignment="Right">
  160. <TextBlock
  161. x:Name="txt_result"
  162. Margin="5,0"
  163. HorizontalAlignment="Center"
  164. VerticalAlignment="Center"
  165. FontSize="12"
  166. Text="{Binding LiquidResult}" />
  167. </Grid>
  168. </Grid>
  169. </Border>
  170. </UserControl>