|
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.CoolingTower"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <Border x:Name="frame" BorderThickness="1">
- <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center">
-
- <Canvas
- Width="205"
- Height="245"
- Margin="5">
- <Polygon Fill="#EEE" Points="0,65 40,10 205,10 180,65" />
-
- <Path
- Canvas.Left="45"
- Margin="0,15,0,0"
- HorizontalAlignment="Center"
- Data="M0 0A60 15 0 0 0 120 0L120 25A60 15 0 0 1 0 25">
- <Path.Fill>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
- <GradientStop Offset="0" Color="#FFD6D6D6" />
- <GradientStop Offset="0.519" Color="White" />
- <GradientStop Offset="1" Color="#FFD6D6D6" />
- </LinearGradientBrush>
- </Path.Fill>
- </Path>
- <Ellipse
- Canvas.Left="45"
- Width="120"
- Height="30"
- VerticalAlignment="Top"
- Fill="#CCC" />
- <Border
- Canvas.Left="50"
- Canvas.Top="-40"
- VerticalAlignment="Top">
- <Viewbox
- Width="110"
- Height="110"
- RenderTransformOrigin="0.5,0.5">
- <Viewbox.RenderTransform>
- <TransformGroup>
- <RotateTransform x:Name="rt" Angle="0" />
- <ScaleTransform ScaleY="0.25" />
- </TransformGroup>
- </Viewbox.RenderTransform>
- <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" />
- </Viewbox>
- </Border>
-
- <Grid
- Grid.Row="1"
- Canvas.Top="65"
- Width="180"
- Height="180"
- Background="LightGray">
- <Border
- Height="140"
- VerticalAlignment="Top"
- BorderThickness="10">
- <Border.Background>
- <DrawingBrush
- TileMode="Tile"
- Viewport="1,0,25,1"
- ViewportUnits="Absolute">
- <DrawingBrush.Drawing>
- <GeometryDrawing>
- <GeometryDrawing.Pen>
- <Pen Brush="#EEE" />
- </GeometryDrawing.Pen>
- <GeometryDrawing.Geometry>
- <PathGeometry>
- <PathFigure>
- <LineSegment Point="10,0" />
- <LineSegment Point="10,10" />
- </PathFigure>
- </PathGeometry>
- </GeometryDrawing.Geometry>
- </GeometryDrawing>
- </DrawingBrush.Drawing>
- </DrawingBrush>
- </Border.Background>
- </Border>
- <Grid
- Height="40"
- Margin="5"
- VerticalAlignment="Bottom">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border Margin="2" Background="#FFAAAAAA" />
- <Border
- Grid.Column="1"
- Margin="2"
- Background="#FFAAAAAA" />
- </Grid>
- </Grid>
-
- <Grid
- Grid.Row="1"
- Canvas.Left="180"
- Canvas.Top="65"
- Width="180"
- Height="180"
- Background="LightGray">
- <Grid.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.139" />
- <SkewTransform AngleY="-65.5" />
- </TransformGroup>
- </Grid.RenderTransform>
- <Border
- Height="140"
- VerticalAlignment="Top"
- BorderThickness="10">
- <Border.Background>
- <DrawingBrush
- TileMode="Tile"
- Viewport="1,0,25,1"
- ViewportUnits="Absolute">
- <DrawingBrush.Drawing>
- <GeometryDrawing>
- <GeometryDrawing.Pen>
- <Pen Brush="#EEE" />
- </GeometryDrawing.Pen>
- <GeometryDrawing.Geometry>
- <PathGeometry>
- <PathFigure>
- <LineSegment Point="10,0" />
- <LineSegment Point="10,10" />
- </PathFigure>
- </PathGeometry>
- </GeometryDrawing.Geometry>
- </GeometryDrawing>
- </DrawingBrush.Drawing>
- </DrawingBrush>
- </Border.Background>
- </Border>
- <Grid
- Height="40"
- Margin="5"
- VerticalAlignment="Bottom">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border Margin="2" Background="#FFAAAAAA" />
- <Border
- Grid.Column="1"
- Margin="2"
- Background="#FFAAAAAA" />
- </Grid>
- </Grid>
-
- <Border
- Canvas.Left="150"
- Canvas.Top="80"
- Width="18"
- Height="18"
- CornerRadius="10">
- <Border.Background>
- <RadialGradientBrush>
- <GradientStop x:Name="gsGreen" Offset="0.5" Color="Gray" />
- <GradientStop Color="White" />
- </RadialGradientBrush>
- </Border.Background>
- </Border>
- <Border
- Canvas.Left="150"
- Canvas.Top="105"
- Width="18"
- Height="18"
- CornerRadius="10">
- <Border.Background>
- <RadialGradientBrush>
- <GradientStop x:Name="gsRed1" Offset="0.6" Color="Gray" />
- <GradientStop Color="White" />
- </RadialGradientBrush>
- </Border.Background>
- </Border>
- </Canvas>
- </Viewbox>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup Name="SelectStateGroup">
- <VisualState Name="Selected">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetName="frame" Storyboard.TargetProperty="(Border.BorderBrush)">
- <DiscreteObjectKeyFrame KeyTime="0">
- <DiscreteObjectKeyFrame.Value>
- <SolidColorBrush Color="Orange" />
- </DiscreteObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState Name="Unselected" />
- </VisualStateGroup>
- <VisualStateGroup Name="RunStateGroup">
- <VisualState Name="RunState">
- <Storyboard>
- <DoubleAnimation
- RepeatBehavior="Forever"
- Storyboard.TargetName="rt"
- Storyboard.TargetProperty="(RotateTransform.Angle)"
- From="0"
- To="-360"
- Duration="00:0:0.5" />
-
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="gsGreen" Storyboard.TargetProperty="Color">
- <DiscreteColorKeyFrame KeyTime="0" Value="Green" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState Name="Stop" />
- </VisualStateGroup>
- <VisualStateGroup x:Name="FaultStateGroup">
- <VisualState Name="FaultState">
- <Storyboard>
- <ColorAnimationUsingKeyFrames
- RepeatBehavior="Forever"
- Storyboard.TargetName="gsRed1"
- Storyboard.TargetProperty="Color">
- <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Red" />
- <DiscreteColorKeyFrame KeyTime="0:0:1" Value="Gray" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState Name="NormalState" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Border>
- </UserControl>
|