123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <UserControl x:Class="CyberX8_Themes.UserControls.PrewetUIControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:userControls="clr-namespace:CyberX8_Themes.UserControls"
- xmlns:customControls="clr-namespace:CyberX8_Themes.CustomControls"
- xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
- xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
- mc:Ignorable="d" Name="self"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <converters:BoolToVisibility2 x:Key="boolToVisibility2"></converters:BoolToVisibility2>
- <converters:BoolToVisibility x:Key="boolToVisibility"></converters:BoolToVisibility>
- <converters:BoolToOrientation x:Key="boolToOrientation"></converters:BoolToOrientation>
- <Style x:Key="DisableContextMenuStyle" TargetType="userControls:Pump1">
- <Setter Property="IsEnabled" Value="False"/>
- </Style>
- <ContextMenu x:Key="IsPumpValveOpen">
- <MenuItem Header="Open" Click="OpenPumpValve_Click"/>
- <MenuItem Header="Close" Click="ClosePumpValve_Click"/>
- </ContextMenu>
- </UserControl.Resources>
- <Grid>
- <!--左边滑杆-->
- <Rectangle Margin="176,98,618,123" Panel.ZIndex="2" Stroke="White" StrokeThickness="0.5">
- <Rectangle.Fill>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
- <GradientStop Offset="0" Color="White" />
- <GradientStop Offset="1" Color="DimGray" />
- </LinearGradientBrush>
- </Rectangle.Fill>
- </Rectangle>
- <Rectangle Fill="CornflowerBlue" Margin="174,150,624,123" Panel.ZIndex="1" Stroke="Black" StrokeThickness="0.2"/>
- <Rectangle Fill="DimGray" Margin="168,150,626,123" Panel.ZIndex="1" Stroke="Black" StrokeThickness="0.3"/>
- <Rectangle Fill="PowderBlue" Margin="182,150,606,123" Panel.ZIndex="1" Stroke="Gray" StrokeThickness="0.5"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="186,160,610,279"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="186,187,610,253"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="186,216,610,224"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="186,248,610,192"/>
- <!--右边滑杆-->
- <Rectangle Margin="380,98,414,122" Panel.ZIndex="2" Stroke="White" StrokeThickness="0.5">
- <Rectangle.Fill>
- <LinearGradientBrush StartPoint="1,0" EndPoint="0,0">
- <GradientStop Offset="0" Color="White" />
- <GradientStop Offset="1" Color="DimGray" />
- </LinearGradientBrush>
- </Rectangle.Fill>
- </Rectangle>
- <Rectangle Fill="DimGray" Margin="388,150,406,122" Panel.ZIndex="1" Stroke="Black" StrokeThickness="0.3"/>
- <Rectangle Fill="PowderBlue" Margin="368,150,420,122" Panel.ZIndex="1" Stroke="Gray" StrokeThickness="0.5"/>
- <Rectangle Fill="CornflowerBlue" Margin="386,150,412,122" Panel.ZIndex="1" Stroke="Black" StrokeThickness="0.2"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="372,161,424,279"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="372,187,424,253"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="372,217,424,223"/>
- <Border Width="4" Background="Black" CornerRadius="5,5,5,5" Panel.ZIndex="1" Margin="372,248,424,192"/>
- <!-- 中间背景-->
- <Rectangle Fill="White" Stroke="Black" Margin="152,145,392,33" RadiusX="2" RadiusY="2" />
- <!-- 顶部背景-->
- <Rectangle Fill="White" Stroke="Black" Margin="134,97,378,299" RadiusX="1" RadiusY="1" />
- <!--WaferHolder UI-->
- <Polyline Opacity="0.6" Visibility="{Binding ElementName=self,Path=IsWaferHolder,Converter={StaticResource boolToVisibility2}}" Stroke="Black" Points="10,0 10,40 25,40 25,310 263,310 263,40 278,40 278,0 10,0" StrokeThickness="3" Margin="136,103,376,33">
- <Polyline.Fill>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Silver" Offset="0.0" />
- <GradientStop Color="White" Offset="0.5" />
- <GradientStop Color="Silver" Offset="1" />
- </LinearGradientBrush>
- </Polyline.Fill>
- </Polyline>
- <Ellipse Opacity="0.6" Visibility="{Binding ElementName=self,Path=IsWaferHolder,Converter={StaticResource boolToVisibility2}}" Margin="205,186,445,116">
- <Ellipse.Fill>
- <LinearGradientBrush EndPoint="0,0" StartPoint="1,1">
- <GradientStop Color="Silver" Offset="0.2" />
- <GradientStop Color="White" Offset="0.5" />
- <GradientStop Color="Silver" Offset="0.7" />
- <GradientStop Color="DarkGray" Offset="0.9"/>
- </LinearGradientBrush>
- </Ellipse.Fill>
- </Ellipse>
- <!-- 左边螺丝-->
- <userControls:Screw Width="15" Height="15" Margin="152,130,632,305"/>
- <userControls:Screw Width="15" Height="15" Margin="152,182,632,253"/>
- <userControls:Screw Width="15" Height="15" Margin="152,234,632,201"/>
- <userControls:Screw Width="15" Height="15" Margin="152,281,632,154"/>
- <userControls:Screw Width="15" Height="15" Margin="152,328,632,107" />
- <!-- 右边螺丝-->
- <userControls:Screw Width="15" Height="15" Margin="392,130,392,305"/>
- <userControls:Screw Width="15" Height="15" Margin="392,182,392,253"/>
- <userControls:Screw Width="15" Height="15" Margin="392,234,392,201"/>
- <userControls:Screw Width="15" Height="15" Margin="392,281,392,154"/>
- <userControls:Screw Width="15" Height="15" Margin="392,328,392,107" />
- <Rectangle Fill="Gray" Margin="378,50,412,352" RadiusX="1" RadiusY="1" />
- <Rectangle Fill="Black" Margin="378,50,420,352" />
- <Rectangle Margin="380,50,414,352" RadiusX="1" RadiusY="1">
- <Rectangle.Fill>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
- <GradientStop Offset="0" Color="White" />
- <GradientStop Offset="1" Color="DimGray" />
- </LinearGradientBrush>
- </Rectangle.Fill>
- </Rectangle>
- <Rectangle Fill="Gray" Margin="174,49,616,353" RadiusX="1" RadiusY="1" />
- <Rectangle Fill="Black" Margin="174,49,624,353" />
- <Rectangle Margin="176,49,618,353" RadiusX="1" RadiusY="1">
- <Rectangle.Fill>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
- <GradientStop Offset="0" Color="White" />
- <GradientStop Offset="1" Color="DimGray" />
- </LinearGradientBrush>
- </Rectangle.Fill>
- </Rectangle>
- <Rectangle Fill="White" Margin="152,348,612,33" RadiusX="1" RadiusY="1" Opacity="0.5" Stroke="Black" StrokeThickness="1"/>
- <Rectangle Fill="White" Margin="372,348,392,33" RadiusX="1" RadiusY="1" Opacity="0.5" Stroke="Black" StrokeThickness="1"/>
- <!--右边进水阀-->
- <userControls:FlowPipe Margin="406,380,294,62" IsFlowing="{Binding ElementName=self,Path=PumpData.PumpEnable}" IsReverse="True"/>
- <userControls:FlowPipe Margin="506,380,194,62" IsFlowing="{Binding ElementName=self,Path=PumpData.PumpEnable}" IsReverse="True"/>
- <Canvas Width="50" Height="80" Margin="441,370,309,0">
- <userControls:PrewetTankControl/>
- <Rectangle Width="20" Height="40" Canvas.Left="6" Canvas.Top="24" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="{Binding ElementName=self,Path=PumpData.PumpValve,Converter={StaticResource boolToVisibility2}}">
- <Rectangle.Fill>
- <SolidColorBrush Color="LimeGreen" Opacity="0.7"/>
- </Rectangle.Fill>
- </Rectangle>
- </Canvas>
- <Canvas Width="30" Height="30" Margin="491,370,279,50">
- <customControls:CommonValveControl Height="16" Width="16" Canvas.Left="7" Canvas.Top="6" HorizontalAlignment="Center" VerticalAlignment="Top"
- ValveOrientation="Horizontal" Status="{Binding ElementName=self,Path=PumpData.PumpValve}"
- IsCanEdit="True" ContextMenu="{StaticResource IsPumpValveOpen}"/>
- </Canvas>
- <Label Height="20" Width="40" FontSize="10" FontWeight="Bold" Content="DI In" Margin="602,373,158,57" />
- <Label Height="25" Width="90" FontSize="10" FontWeight="Bold" Content="Booster Pump" Margin="526,402,184,23" />
- <Border Width="35" Height="15" CornerRadius="17" Opacity="0.95" x:Name="border1" Margin="548,393,216,42">
- <Path Width="31" Height="10" Fill="Black" Stroke="Black" Stretch="Fill" Data="M213.333333 507.733333h725.333334v42.666667H204.8l145.066667 145.066667-29.866667 29.866666L128 533.333333 320 341.333333l29.866667 29.866667L213.333333 507.733333z"/>
- </Border>
- <Canvas Width="80" Height="80" Margin="526,313,194,57" Panel.ZIndex="2">
- <userControls:Pump1 RotateTransformValue="0" IsOpenPump="{Binding ElementName=self,Path=PumpData.PumpEnable,Mode=TwoWay}" Canvas.Top="10" HorizontalAlignment="Left" VerticalAlignment="Top"
- ModuleName="{Binding ElementName=self, Path=ModuleName}"/>
- </Canvas>
- <!--中间动画模块-->
- <Grid Width="400" Height="300" Panel.ZIndex="2" Margin="91,38,309,12">
- <Canvas x:Name="linmot" >
- <Image Source="pack://application:,,,/CyberX8_Themes;component/Themes/Images/parts/prewetMove.png"
- Height="98" Width="224" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="2" Canvas.Left="85"
- Canvas.Top="{Binding ElementName=self,Path=YaxleData}">
- </Image>
- <userControls:PrewetFLowControl IsShow="True" Panel.ZIndex="2" Canvas.Left="142" Canvas.Top="{Binding ElementName=self,Path=YaxleData}" Margin="0,-100,0,0" Visibility="{Binding ElementName=self,Path=PumpData.PumpValve,Converter={StaticResource boolToVisibility2}}" RenderTransformOrigin="0.5,0.5">
- <local:PrewetFLowControl.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform/>
- <RotateTransform Angle="180"/>
- <TranslateTransform/>
- </TransformGroup>
- </local:PrewetFLowControl.RenderTransform>
- </userControls:PrewetFLowControl>
- <userControls:PrewetFLowControl IsShow="True" Panel.ZIndex="2" Canvas.Left="136" Canvas.Top="{Binding ElementName=self,Path=YaxleData}" Margin="0,60,0,0" Visibility="{Binding ElementName=self,Path=PumpData.PumpValve,Converter={StaticResource boolToVisibility2}}"/>
- </Canvas>
-
- </Grid>
- <Rectangle x:Name="ErrorRectangle" Fill="Red" Height="234" VerticalAlignment="Bottom" Margin="199,0,437,42" Opacity="0.5" Panel.ZIndex="3"
- Visibility="{Binding ElementName=self,Path=IsError,Converter={StaticResource boolToVisibility2}}"/>
- </Grid>
- </UserControl>
|