|
@@ -124,8 +124,8 @@
|
|
|
<Rectangle Opacity="0.5" Fill="White" Margin="543,340,221,41" RadiusX="1" RadiusY="1" Stroke="Black" StrokeThickness="1"/>
|
|
|
|
|
|
<!--Circulation Valve-->
|
|
|
- <userControls:FlowPipe Margin="105,372,582,70" Width="113" IsFlowing="{Binding ElementName=self,Path=IsCirculationValveOn}" IsReverse="True"/>
|
|
|
- <userControls:FlowPipe Margin="225,372,475,70" IsFlowing="{Binding ElementName=self,Path=IsCirculationValveOn}" IsReverse="True"/>
|
|
|
+ <userControls:FlowPipe Margin="105,372,582,70" Width="113" IsFlowing="{Binding ElementName=self,Path=IsCirculationValveOn}" IsReverse="False"/>
|
|
|
+ <userControls:FlowPipe Margin="225,372,475,70" IsFlowing="{Binding ElementName=self,Path=IsCirculationValveOn}" IsReverse="False"/>
|
|
|
<Canvas Width="30" Height="30" Margin="205,362,565,58">
|
|
|
<customControls:CommonValveControl Height="16" Width="16" Canvas.Left="7" Canvas.Top="6" HorizontalAlignment="Center" VerticalAlignment="Top"
|
|
|
Status="{Binding ElementName=self,Path=IsCirculationValveOn}" ValveOrientation="Horizontal"
|
|
@@ -151,46 +151,69 @@
|
|
|
</Image>
|
|
|
</Canvas>
|
|
|
</Grid>
|
|
|
- <Rectangle x:Name="GrowingRectangle" Fill="PaleGreen" Height="0" VerticalAlignment="Bottom" Margin="359,0,257,42">
|
|
|
- <Rectangle.Style>
|
|
|
- <Style TargetType="Rectangle">
|
|
|
- <Style.Triggers>
|
|
|
- <DataTrigger Binding="{Binding ElementName=self,Path=PumpData.PumpValve}" Value="True">
|
|
|
- <DataTrigger.EnterActions>
|
|
|
- <BeginStoryboard x:Name="GrowingStoryboard">
|
|
|
- <Storyboard >
|
|
|
- <DoubleAnimation Storyboard.TargetProperty="Height" To="50" Duration="0:0:30"/>
|
|
|
- </Storyboard>
|
|
|
- </BeginStoryboard>
|
|
|
- </DataTrigger.EnterActions>
|
|
|
- <DataTrigger.ExitActions>
|
|
|
- <StopStoryboard BeginStoryboardName="GrowingStoryboard"/>
|
|
|
- </DataTrigger.ExitActions>
|
|
|
- </DataTrigger>
|
|
|
- </Style.Triggers>
|
|
|
- </Style>
|
|
|
- </Rectangle.Style>
|
|
|
- </Rectangle>
|
|
|
- <Rectangle x:Name="ErrorRectangle" Fill="Transparent" Height="234" VerticalAlignment="Bottom" Margin="370,0,266,50" Opacity="0.5" Panel.ZIndex="3"
|
|
|
+ <Grid Panel.ZIndex="2" Margin="291,89,174,13">
|
|
|
+ <Canvas >
|
|
|
+ <Canvas.RenderTransform>
|
|
|
+ <!-- 定义平移变换 -->
|
|
|
+ <TranslateTransform x:Name="imageTranslate"/>
|
|
|
+ </Canvas.RenderTransform>
|
|
|
+ <Canvas.Style>
|
|
|
+ <Style TargetType="Canvas">
|
|
|
+ <!-- 设置数据触发器 -->
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding IsRunLinmot}" Value="True">
|
|
|
+ <DataTrigger.EnterActions>
|
|
|
+ <BeginStoryboard>
|
|
|
+ <Storyboard>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" RepeatBehavior="Forever">
|
|
|
+ <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
|
|
|
+ <LinearDoubleKeyFrame Value="50" KeyTime="0:0:2"/>
|
|
|
+ <LinearDoubleKeyFrame Value="0" KeyTime="0:0:4"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
+ </Storyboard>
|
|
|
+ </BeginStoryboard>
|
|
|
+ </DataTrigger.EnterActions>
|
|
|
+ <DataTrigger.ExitActions>
|
|
|
+ <BeginStoryboard>
|
|
|
+ <Storyboard>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)">
|
|
|
+ <LinearDoubleKeyFrame Value="25" KeyTime="0:0:0"/>
|
|
|
+ <LinearDoubleKeyFrame Value="0" KeyTime="0:0:2"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
+ </Storyboard>
|
|
|
+ </BeginStoryboard>
|
|
|
+ </DataTrigger.ExitActions>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Canvas.Style>
|
|
|
+ <Image Source="pack://application:,,,/CyberX8_Themes;component/Themes/Images/parts/MetalFence.png" x:Name="metalLinmot"
|
|
|
+HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="2" Canvas.Left="54" Width="215" Height="181" Canvas.Top="25">
|
|
|
+ </Image>
|
|
|
+ </Canvas>
|
|
|
+ </Grid>
|
|
|
+ <Rectangle x:Name="ErrorRectangle" Fill="Red" Height="234" VerticalAlignment="Bottom" Margin="370,0,266,50" Opacity="0.5" Panel.ZIndex="3"
|
|
|
Visibility="{Binding ElementName=self,Path=IsError,Converter={StaticResource boolToVisibility2}}"/>
|
|
|
- <!--Clamp Valve On-->
|
|
|
- <userControls:FlowPipe Margin="105,100,595,342" IsFlowing="{Binding IsClampValveOn, ElementName=self}" IsReverse="False"/>
|
|
|
- <userControls:FlowPipe Margin="207,100,493,342" IsFlowing="{Binding IsClampValveOn, ElementName=self}" IsReverse="False"/>
|
|
|
- <Label Height="25" FontSize="13" FontWeight="Bold" Content="Clamp Valve On" Margin="156,70,525,355" />
|
|
|
- <Canvas Width="30" Height="30" Margin="190,89,580,331">
|
|
|
+ <!--Clamp Valve On-->
|
|
|
+ <userControls:FlowPipe Margin="213,100,493,342" IsReverse="False"/>
|
|
|
+ <Rectangle Fill="lime" Height="6" Margin="215,101,494,343" Opacity="0.5"
|
|
|
+Visibility="{Binding IsClampValveOn,ElementName=self,Converter={StaticResource boolToVisibility2}}"/>
|
|
|
+ <Label Height="25" FontSize="13" FontWeight="Bold" Content="Clamp Valve On" Margin="186,71,495,354" />
|
|
|
+ <Canvas Width="30" Height="30" Margin="240,89,530,331">
|
|
|
<customControls:CommonValveControl Height="16" Width="16" Canvas.Left="7" Canvas.Top="6" HorizontalAlignment="Center" VerticalAlignment="Top"
|
|
|
Status="{Binding ElementName=self,Path=IsClampValveOn}" ValveOrientation="Horizontal"
|
|
|
IsCanEdit="True" RenderTransformOrigin="-0.75,0.312"/>
|
|
|
</Canvas>
|
|
|
<!--Clamp Valve Off-->
|
|
|
- <userControls:FlowPipe Margin="207,126,493,316" IsFlowing="{Binding IsUnclampValveOn, ElementName=self}" IsReverse="False"/>
|
|
|
- <userControls:FlowPipe Margin="105,126,595,316" IsFlowing="{Binding IsUnclampValveOn, ElementName=self}" IsReverse="False"/>
|
|
|
- <Canvas Width="30" Height="30" Margin="190,116,580,304">
|
|
|
+ <userControls:FlowPipe Margin="213,126,493,316" IsReverse="False"/>
|
|
|
+ <Rectangle Fill="lime" Height="6" Margin="215,127,494,317" Opacity="0.5"
|
|
|
+Visibility="{Binding IsUnclampValveOn,ElementName=self,Converter={StaticResource boolToVisibility2}}"/>
|
|
|
+ <Canvas Width="30" Height="30" Margin="240,116,530,304">
|
|
|
<customControls:CommonValveControl Height="16" Width="16" Canvas.Left="7" Canvas.Top="6" HorizontalAlignment="Center" VerticalAlignment="Top"
|
|
|
Status="{Binding ElementName=self,Path=IsUnclampValveOn}" ValveOrientation="Horizontal"
|
|
|
IsCanEdit="True" />
|
|
|
</Canvas>
|
|
|
- <Label Height="25" FontSize="13" FontWeight="Bold" Content="Clamp Valve Off" Margin="156,139,525,286" />
|
|
|
+ <Label Height="25" FontSize="13" FontWeight="Bold" Content="Clamp Valve Off" Margin="186,139,495,286" />
|
|
|
|
|
|
|
|
|
</Grid>
|