| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 | <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWCellUIControl"             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:PunkHPX8_Themes.UserControls"             xmlns:customControls="clr-namespace:PunkHPX8_Themes.CustomControls"             xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters"             xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"             mc:Ignorable="d" Name="self"             d:DesignHeight="600" d:DesignWidth="600">    <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="DripValve">            <MenuItem Header="Open" Click="OpenDripValve_Click"/>            <MenuItem Header="Close" Click="CloseDripValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="SmallValve">            <MenuItem Header="Open" Click="OpenSmallValve_Click"/>            <MenuItem Header="Close" Click="CloseSmallValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="LargeValve">            <MenuItem Header="Open" Click="OpenLargeValve_Click"/>            <MenuItem Header="Close" Click="CloseLargeValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="VentValve">            <MenuItem Header="Open" Click="OpenVentValve_Click"/>            <MenuItem Header="Close" Click="CloseVentValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="DrainValve">            <MenuItem Header="Open" Click="OpenDrainValve_Click"/>            <MenuItem Header="Close" Click="CloseDrainValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="CellVacuumValve">            <MenuItem Header="Open" Click="OpenCellVacuumValve_Click"/>            <MenuItem Header="Close" Click="CloseCellVacuumValve_Click"/>        </ContextMenu>    </UserControl.Resources>    <Canvas>            <Grid Height="50" Width="100" Canvas.Left="149" Canvas.Top="110"  >                <Grid.RowDefinitions>                    <RowDefinition Height="30"></RowDefinition>                    <RowDefinition Height="20"></RowDefinition>                </Grid.RowDefinitions>                <Grid Grid.Row="0">                    <customControls:CommonValveControl Height="16" Width="16"   ValveOrientation="Horizontal"                        Status="{Binding ElementName=self,Path=DripValve}"                         IsCanEdit="True"                        ContextMenu="{StaticResource DripValve}" RenderTransformOrigin="0.5,0.5">                        <customControls:CommonValveControl.RenderTransform>                            <TransformGroup>                                <ScaleTransform/>                                <SkewTransform/>                                <RotateTransform Angle="90"/>                                <TranslateTransform/>                            </TransformGroup>                        </customControls:CommonValveControl.RenderTransform>                    </customControls:CommonValveControl>                </Grid>                <Grid Grid.Row="1">                    <Label Margin="62,-18,-8,8" Height="30" FontSize="10"  FontWeight="Bold" Content="Drip" />                </Grid>            </Grid>            <Grid Height="50" Width="100" Canvas.Left="258" Canvas.Top="109" >                <Grid.RowDefinitions>                    <RowDefinition Height="30"></RowDefinition>                    <RowDefinition Height="20"></RowDefinition>                </Grid.RowDefinitions>                <Grid Grid.Row="0">                    <customControls:CommonValveControl Height="16" Width="16"   ValveOrientation="Horizontal"                        Status="{Binding ElementName=self,Path=SmallValve}"                         IsCanEdit="True"                        ContextMenu="{StaticResource SmallValve}" RenderTransformOrigin="0.5,0.5">                        <customControls:CommonValveControl.RenderTransform>                            <TransformGroup>                                <ScaleTransform/>                                <SkewTransform/>                                <RotateTransform Angle="90"/>                                <TranslateTransform/>                            </TransformGroup>                        </customControls:CommonValveControl.RenderTransform>                    </customControls:CommonValveControl>                </Grid>                <Grid Grid.Row="1">                    <Label Margin="60,-20,-16,10" Height="30" FontSize="10"  FontWeight="Bold" Content="Small" />                </Grid>            </Grid>            <Grid Height="50" Width="100" Canvas.Left="355" Canvas.Top="111" HorizontalAlignment="Left" VerticalAlignment="Center"  >                <Grid.RowDefinitions>                    <RowDefinition Height="30"></RowDefinition>                    <RowDefinition Height="20"></RowDefinition>                </Grid.RowDefinitions>                <Grid Grid.Row="0" Margin="0,-1,0,1">                    <customControls:CommonValveControl Height="16" Width="16"   ValveOrientation="Horizontal"                        Status="{Binding ElementName=self,Path=LargeValve}"                         IsCanEdit="True"                        ContextMenu="{StaticResource LargeValve}" RenderTransformOrigin="0.5,0.5">                        <customControls:CommonValveControl.RenderTransform>                            <TransformGroup>                                <ScaleTransform/>                                <SkewTransform/>                                <RotateTransform Angle="90"/>                                <TranslateTransform/>                            </TransformGroup>                        </customControls:CommonValveControl.RenderTransform>                    </customControls:CommonValveControl>                </Grid>                <Grid Grid.Row="1">                    <Label Margin="62,-22,-30,12" Height="30" FontSize="10"  FontWeight="Bold" Content="Large" />                </Grid>            </Grid>            <Grid Height="50" Width="100" Canvas.Left="436" Canvas.Top="203" HorizontalAlignment="Center" VerticalAlignment="Top" >                <Grid.RowDefinitions>                    <RowDefinition Height="30"></RowDefinition>                    <RowDefinition Height="20"></RowDefinition>                </Grid.RowDefinitions>                <Grid Grid.Row="0">                    <customControls:CommonValveControl Height="16" Width="16"   ValveOrientation="Horizontal"                        Status="{Binding ElementName=self,Path=VentValve}"                         IsCanEdit="True"                        ContextMenu="{StaticResource VentValve}"/>                </Grid>                <Grid Grid.Row="1">                    <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10"  FontWeight="Bold" Content="Vent Vlave" />                </Grid>            </Grid>            <Grid Height="50" Width="100" Canvas.Left="451" Canvas.Top="378" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="2">                <Grid.RowDefinitions>                    <RowDefinition Height="30"></RowDefinition>                    <RowDefinition Height="20"></RowDefinition>                </Grid.RowDefinitions>                <Grid Grid.Row="0" >                    <customControls:CommonValveControl Height="16" Width="16"   ValveOrientation="Horizontal"                        Status="{Binding ElementName=self,Path=DrainValve}"                         IsCanEdit="True"                        ContextMenu="{StaticResource DrainValve}"/>                </Grid>                <Grid Grid.Row="1">                    <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10"  FontWeight="Bold" Content="Drain Valve" />                </Grid>            </Grid>            <Grid Height="50" Width="100" Canvas.Left="43" Canvas.Top="431" Panel.ZIndex="2">                <Grid.RowDefinitions>                    <RowDefinition Height="30"></RowDefinition>                    <RowDefinition Height="20"></RowDefinition>                </Grid.RowDefinitions>                <Grid Grid.Row="0">                    <customControls:CommonValveControl Height="16" Width="16"   ValveOrientation="Horizontal"                        Status="{Binding ElementName=self,Path=VacuumValve}"                         IsCanEdit="True"                        ContextMenu="{StaticResource CellVacuumValve}"/>                </Grid>                <Grid Grid.Row="1">                    <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10"  FontWeight="Bold" Content="Vacuum Valve" />                </Grid>            </Grid>            <Grid Height="50" Width="120" Canvas.Left="420" Canvas.Top="14"  >                <Grid.RowDefinitions>                    <RowDefinition Height="20"></RowDefinition>                    <RowDefinition Height="30"></RowDefinition>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="60"></ColumnDefinition>                    <ColumnDefinition Width="60"></ColumnDefinition>                </Grid.ColumnDefinitions>                <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">                    <Label Content="DIWLoopDO" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>                </Grid>                <Border Grid.Row="1" Grid.Column="0"  Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">                    <TextBlock  Text="{Binding ElementName=self,Path=DIWLoopDo}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>                </Border>                <Border Grid.Row="1" Grid.Column="1"  Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">                    <TextBlock  Text="ppm" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>                </Border>            </Grid>            <Grid Height="50" Width="120" Canvas.Left="220" Canvas.Top="14"  >                <Grid.RowDefinitions>                    <RowDefinition Height="20"></RowDefinition>                    <RowDefinition Height="30"></RowDefinition>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="60"></ColumnDefinition>                    <ColumnDefinition Width="60"></ColumnDefinition>                </Grid.ColumnDefinitions>                <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">                    <Label Content="Diw Cell Flow" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>                </Grid>                <Border Grid.Row="1" Grid.Column="0"  Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">                    <TextBlock  Text="{Binding ElementName=self,Path=DIWFlow}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>                </Border>                <Border Grid.Row="1" Grid.Column="1"  Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">                    <TextBlock  Text="L/min" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>                </Border>            </Grid>            <Grid Height="50" Width="120" Canvas.Left="76" Canvas.Top="377"  >                <Grid.RowDefinitions>                    <RowDefinition Height="20"></RowDefinition>                    <RowDefinition Height="30"></RowDefinition>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="60"></ColumnDefinition>                    <ColumnDefinition Width="60"></ColumnDefinition>                </Grid.ColumnDefinitions>                <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">                    <Label Content="Cell Vacuum" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>                </Grid>                <Border Grid.Row="1" Grid.Column="0"  Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">                    <TextBlock  Text="{Binding ElementName=self,Path=CellVacuum}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>                </Border>                <Border Grid.Row="1" Grid.Column="1"  Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">                    <TextBlock  Text="Toor" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>                </Border>            </Grid>            <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwUp.png" Height="84"  Width="254"  HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="181" Canvas.Top="163"/>            <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwCell.png" Height="236"  Width="236"  HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="187" Canvas.Top="247"/>            <userControls:FlowPipe  Height="6" Width="360" IsFlowing="true" IsReverse="True" Panel.ZIndex="-1" Canvas.Left="195" Canvas.Top="66" HorizontalAlignment="Left" VerticalAlignment="Center" />            <userControls:FlowPipe IsFlowing="{Binding ElementName=self,Path=LargeValve}" Height="8"  Width="124"  RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1" Canvas.Left="409" Canvas.Top="70"/>            <userControls:FlowPipe IsFlowing="{Binding ElementName=self,Path=DripValve}" Height="8"  Width="124"  RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1" Canvas.Left="203" Canvas.Top="67"/>            <userControls:FlowPipe IsFlowing="{Binding ElementName=self,Path=SmallValve}" Height="8"  Width="124"  RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1" Canvas.Left="312" Canvas.Top="71"/>            <userControls:FlowPipe  Height="6" Width="130" IsFlowing="{Binding ElementName=self,Path=VentValve}" IsReverse="True" Panel.ZIndex="-1" Canvas.Left="424" Canvas.Top="215" HorizontalAlignment="Left" VerticalAlignment="Top" />            <userControls:FlowPipe  Height="6" Width="230" IsFlowing="{Binding ElementName=self,Path=DrainValve}" IsReverse="False" Panel.ZIndex="1" Canvas.Left="321" Canvas.Top="391" HorizontalAlignment="Left" VerticalAlignment="Center" />            <userControls:FlowPipe  Height="6" Width="260" IsFlowing="{Binding ElementName=self,Path=VacuumValve}" IsReverse="False" Panel.ZIndex="1" Canvas.Left="48" Canvas.Top="443" HorizontalAlignment="Center" VerticalAlignment="Top" />            <Label  Height="26" Width="63" FontSize="10"  FontWeight="Bold" Content="DIW In" Canvas.Left="552" Canvas.Top="58" HorizontalAlignment="Center" VerticalAlignment="Top" />            <Label  Height="26" Width="63" FontSize="10"  FontWeight="Bold" Content="N2 In" Canvas.Left="553" Canvas.Top="207" HorizontalAlignment="Left" VerticalAlignment="Top" />            <Label  Height="26" Width="63" FontSize="10"  FontWeight="Bold" Content="To Drain" Canvas.Left="540" Canvas.Top="368" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="0.302,1.385" />            <Label  Height="26" Width="80" FontSize="10"  FontWeight="Bold" Content="To VAC Pump" Canvas.Left="2" Canvas.Top="421" HorizontalAlignment="Center" VerticalAlignment="Top" />            <Canvas Height="30" Width="150" Canvas.Left="231" Canvas.Top="231" RenderTransformOrigin="0.5,0.5" Panel.ZIndex="2">                <Viewbox   Canvas.Left="5"  Canvas.Top="2.5" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="5">                <local:VPWWaferCtrl Width="140" Height="25" WaferData="{Binding ElementName=self, Path=WaferInfo}"/>                </Viewbox>            </Canvas>        </Canvas>     </UserControl>
 |