终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

240 rindas
11 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.CoolingTower"
  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:BPASmartClient.CustomResource.UserControls"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d">
  11. <Border x:Name="frame" BorderThickness="1">
  12. <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center">
  13. <Canvas
  14. Width="205"
  15. Height="245"
  16. Margin="5">
  17. <Polygon Fill="#EEE" Points="0,65 40,10 205,10 180,65" />
  18. <Path
  19. Canvas.Left="45"
  20. Margin="0,15,0,0"
  21. HorizontalAlignment="Center"
  22. Data="M0 0A60 15 0 0 0 120 0L120 25A60 15 0 0 1 0 25">
  23. <Path.Fill>
  24. <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
  25. <GradientStop Offset="0" Color="#FFD6D6D6" />
  26. <GradientStop Offset="0.519" Color="White" />
  27. <GradientStop Offset="1" Color="#FFD6D6D6" />
  28. </LinearGradientBrush>
  29. </Path.Fill>
  30. </Path>
  31. <Ellipse
  32. Canvas.Left="45"
  33. Width="120"
  34. Height="30"
  35. VerticalAlignment="Top"
  36. Fill="#CCC" />
  37. <Border
  38. Canvas.Left="50"
  39. Canvas.Top="-40"
  40. VerticalAlignment="Top">
  41. <Viewbox
  42. Width="110"
  43. Height="110"
  44. RenderTransformOrigin="0.5,0.5">
  45. <Viewbox.RenderTransform>
  46. <TransformGroup>
  47. <RotateTransform x:Name="rt" Angle="0" />
  48. <ScaleTransform ScaleY="0.25" />
  49. </TransformGroup>
  50. </Viewbox.RenderTransform>
  51. <Path Data="M605.61792 481.6c110.464-39.808 281.6-67.584 376.192 33.536 92.672 98.944 31.168 350.016-167.232 395.904-186.496 43.136-27.456-356.736-246.912-313.6a108.224 108.224 0 0 1-22.4 15.104c38.4 110.592 62.656 276.416-36.224 369.024s-350.08 31.168-395.968-167.232c-41.344-178.816 325.248-39.424 317.44-220.992a107.648 107.648 0 0 1-30.592-44.8c-110.592 36.288-268.032 55.616-357.504-39.68C-50.44608 409.984 11.18592 159.04 210.03392 113.152c179.2-41.28 40.128 323.648 220.608 317.184a107.584 107.584 0 0 1 46.848-23.04c-37.376-110.784-59.648-273.472 37.824-364.8C614.44992-50.496 865.20192 11.136 911.08992 209.984c43.456 188.48-363.328 24.832-312.256 252.928a106.304 106.304 0 0 1 6.784 18.688z" Fill="#EEE" />
  52. </Viewbox>
  53. </Border>
  54. <Grid
  55. Grid.Row="1"
  56. Canvas.Top="65"
  57. Width="180"
  58. Height="180"
  59. Background="LightGray">
  60. <Border
  61. Height="140"
  62. VerticalAlignment="Top"
  63. BorderThickness="10">
  64. <Border.Background>
  65. <DrawingBrush
  66. TileMode="Tile"
  67. Viewport="1,0,25,1"
  68. ViewportUnits="Absolute">
  69. <DrawingBrush.Drawing>
  70. <GeometryDrawing>
  71. <GeometryDrawing.Pen>
  72. <Pen Brush="#EEE" />
  73. </GeometryDrawing.Pen>
  74. <GeometryDrawing.Geometry>
  75. <PathGeometry>
  76. <PathFigure>
  77. <LineSegment Point="10,0" />
  78. <LineSegment Point="10,10" />
  79. </PathFigure>
  80. </PathGeometry>
  81. </GeometryDrawing.Geometry>
  82. </GeometryDrawing>
  83. </DrawingBrush.Drawing>
  84. </DrawingBrush>
  85. </Border.Background>
  86. </Border>
  87. <Grid
  88. Height="40"
  89. Margin="5"
  90. VerticalAlignment="Bottom">
  91. <Grid.ColumnDefinitions>
  92. <ColumnDefinition />
  93. <ColumnDefinition />
  94. </Grid.ColumnDefinitions>
  95. <Border Margin="2" Background="#FFAAAAAA" />
  96. <Border
  97. Grid.Column="1"
  98. Margin="2"
  99. Background="#FFAAAAAA" />
  100. </Grid>
  101. </Grid>
  102. <Grid
  103. Grid.Row="1"
  104. Canvas.Left="180"
  105. Canvas.Top="65"
  106. Width="180"
  107. Height="180"
  108. Background="LightGray">
  109. <Grid.RenderTransform>
  110. <TransformGroup>
  111. <ScaleTransform ScaleX="0.139" />
  112. <SkewTransform AngleY="-65.5" />
  113. </TransformGroup>
  114. </Grid.RenderTransform>
  115. <Border
  116. Height="140"
  117. VerticalAlignment="Top"
  118. BorderThickness="10">
  119. <Border.Background>
  120. <DrawingBrush
  121. TileMode="Tile"
  122. Viewport="1,0,25,1"
  123. ViewportUnits="Absolute">
  124. <DrawingBrush.Drawing>
  125. <GeometryDrawing>
  126. <GeometryDrawing.Pen>
  127. <Pen Brush="#EEE" />
  128. </GeometryDrawing.Pen>
  129. <GeometryDrawing.Geometry>
  130. <PathGeometry>
  131. <PathFigure>
  132. <LineSegment Point="10,0" />
  133. <LineSegment Point="10,10" />
  134. </PathFigure>
  135. </PathGeometry>
  136. </GeometryDrawing.Geometry>
  137. </GeometryDrawing>
  138. </DrawingBrush.Drawing>
  139. </DrawingBrush>
  140. </Border.Background>
  141. </Border>
  142. <Grid
  143. Height="40"
  144. Margin="5"
  145. VerticalAlignment="Bottom">
  146. <Grid.ColumnDefinitions>
  147. <ColumnDefinition />
  148. <ColumnDefinition />
  149. </Grid.ColumnDefinitions>
  150. <Border Margin="2" Background="#FFAAAAAA" />
  151. <Border
  152. Grid.Column="1"
  153. Margin="2"
  154. Background="#FFAAAAAA" />
  155. </Grid>
  156. </Grid>
  157. <Border
  158. Canvas.Left="150"
  159. Canvas.Top="80"
  160. Width="18"
  161. Height="18"
  162. CornerRadius="10">
  163. <Border.Background>
  164. <RadialGradientBrush>
  165. <GradientStop x:Name="gsGreen" Offset="0.5" Color="Gray" />
  166. <GradientStop Color="White" />
  167. </RadialGradientBrush>
  168. </Border.Background>
  169. </Border>
  170. <Border
  171. Canvas.Left="150"
  172. Canvas.Top="105"
  173. Width="18"
  174. Height="18"
  175. CornerRadius="10">
  176. <Border.Background>
  177. <RadialGradientBrush>
  178. <GradientStop x:Name="gsRed1" Offset="0.6" Color="Gray" />
  179. <GradientStop Color="White" />
  180. </RadialGradientBrush>
  181. </Border.Background>
  182. </Border>
  183. </Canvas>
  184. </Viewbox>
  185. <VisualStateManager.VisualStateGroups>
  186. <VisualStateGroup Name="SelectStateGroup">
  187. <VisualState Name="Selected">
  188. <Storyboard>
  189. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="frame" Storyboard.TargetProperty="(Border.BorderBrush)">
  190. <DiscreteObjectKeyFrame KeyTime="0">
  191. <DiscreteObjectKeyFrame.Value>
  192. <SolidColorBrush Color="Orange" />
  193. </DiscreteObjectKeyFrame.Value>
  194. </DiscreteObjectKeyFrame>
  195. </ObjectAnimationUsingKeyFrames>
  196. </Storyboard>
  197. </VisualState>
  198. <VisualState Name="Unselected" />
  199. </VisualStateGroup>
  200. <VisualStateGroup Name="RunStateGroup">
  201. <VisualState Name="RunState">
  202. <Storyboard>
  203. <DoubleAnimation
  204. RepeatBehavior="Forever"
  205. Storyboard.TargetName="rt"
  206. Storyboard.TargetProperty="(RotateTransform.Angle)"
  207. From="0"
  208. To="-360"
  209. Duration="00:0:0.5" />
  210. <ColorAnimationUsingKeyFrames Storyboard.TargetName="gsGreen" Storyboard.TargetProperty="Color">
  211. <DiscreteColorKeyFrame KeyTime="0" Value="Green" />
  212. </ColorAnimationUsingKeyFrames>
  213. </Storyboard>
  214. </VisualState>
  215. <VisualState Name="Stop" />
  216. </VisualStateGroup>
  217. <VisualStateGroup x:Name="FaultStateGroup">
  218. <VisualState Name="FaultState">
  219. <Storyboard>
  220. <ColorAnimationUsingKeyFrames
  221. RepeatBehavior="Forever"
  222. Storyboard.TargetName="gsRed1"
  223. Storyboard.TargetProperty="Color">
  224. <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Red" />
  225. <DiscreteColorKeyFrame KeyTime="0:0:1" Value="Gray" />
  226. </ColorAnimationUsingKeyFrames>
  227. </Storyboard>
  228. </VisualState>
  229. <VisualState Name="NormalState" />
  230. </VisualStateGroup>
  231. </VisualStateManager.VisualStateGroups>
  232. </Border>
  233. </UserControl>