| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 | <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWMainUIControl"             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="800" 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>        <converters:MutiBoolToBool x:Key="mutiBoolToBool"/>        <Style x:Key="DisableContextMenuStyle" TargetType="userControls:Pump1">            <Setter Property="IsEnabled" Value="False"/>        </Style>        <ContextMenu x:Key="DIWProcessValve">            <MenuItem Header="Open" Click="OpenDIWProcessValve_Click"/>            <MenuItem Header="Close" Click="CloseDIWProcessValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="DIWDegasValve">            <MenuItem Header="Open" Click="OpenDIWDegasValve_Click"/>            <MenuItem Header="Close" Click="CloseDIWDegasValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="DegasAdjustValve">            <MenuItem Header="Open" Click="OpenDegasAdjustValve_Click"/>            <MenuItem Header="Close" Click="CloseDegasAdjustValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="VPW1VACValve">            <MenuItem Header="Open" Click="OpenVPW1VACValve_Click"/>            <MenuItem Header="Close" Click="CloseVPW1VACValve_Click"/>        </ContextMenu>        <ContextMenu x:Key="VPW2VACValve">            <MenuItem Header="Open" Click="OpenVPW2VACValve_Click"/>            <MenuItem Header="Close" Click="CloseVPW2VACValve_Click"/>        </ContextMenu>    </UserControl.Resources>    <Canvas>        <Grid Height="50" Width="100" Canvas.Left="206" Canvas.Top="83" 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=DIWProcessValve}"                                 IsCanEdit="True"                                ContextMenu="{StaticResource DIWProcessValve}"/>            </Grid>            <Grid Grid.Row="1">                <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="DIW Process" />            </Grid>        </Grid>        <Grid Height="50" Width="100" Canvas.Left="575" Canvas.Top="83" 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=DIWDegasValve}"                                 IsCanEdit="True"                                ContextMenu="{StaticResource DIWDegasValve}"/>            </Grid>            <Grid Grid.Row="1">                <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="DIW Degas" />            </Grid>        </Grid>        <Grid Height="50" Width="100" Canvas.Left="206" Canvas.Top="202" 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=DegasAdjustValve}"                                 IsCanEdit="True"                                ContextMenu="{StaticResource DegasAdjustValve}"/>            </Grid>            <Grid Grid.Row="1">                <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="Degas Adjust" />            </Grid>        </Grid>        <Grid Height="50" Width="100" Canvas.Left="250" Canvas.Top="600" 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=VPW1VACValve}"                                 IsCanEdit="True"                                ContextMenu="{StaticResource VPW1VACValve}"/>            </Grid>            <Grid Grid.Row="1">                <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="VPW 1 VAC" />            </Grid>        </Grid>        <Grid Height="50" Width="100" Canvas.Left="510" Canvas.Top="600" 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=VPW2VACValve}"                                 IsCanEdit="True"                                ContextMenu="{StaticResource VPW2VACValve}"/>            </Grid>            <Grid Grid.Row="1">                <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="VPW 2 VAC" />            </Grid>        </Grid>        <Grid Height="50" Width="120" Canvas.Left="282" Canvas.Top="42" HorizontalAlignment="Center" VerticalAlignment="Top"  >            <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="Total 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=TotalFlow}" 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>        <userControls:ReservoirPump IsEnabled="True" ModuleName="{Binding ModuleName,ElementName=self}" PumpType="BoosterPump" RotateTransformValue="0" IsOpenPump="{Binding IsBoosterPumpOpen,Mode=TwoWay,ElementName=self}" Height="60" Width="60"  Tag="26" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="99" Canvas.Top="46" />        <userControls:ReservoirPump IsEnabled="True" ModuleName="{Binding ModuleName,ElementName=self}" PumpType="DegasPump" RotateTransformValue="0" IsOpenPump="{Binding IsDegasPumpOpen,Mode=TwoWay,ElementName=self}" Height="60" Width="60"   Tag="26" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="99" Canvas.Top="163" />        <userControls:ReservoirPump IsEnabled="True" ModuleName="{Binding ModuleName,ElementName=self}" PumpType="VacuumPump" RotateTransformValue="0" IsOpenPump="{Binding IsVacuumPumpOpen,Mode=TwoWay,ElementName=self}" Height="60" Width="60"   Tag="26" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="396" Canvas.Top="670" RenderTransformOrigin="0.25,0.517"  >            <local:ReservoirPump.RenderTransform>                <TransformGroup>                    <ScaleTransform/>                    <SkewTransform/>                    <RotateTransform Angle="-89.495"/>                    <TranslateTransform/>                </TransformGroup>            </local:ReservoirPump.RenderTransform>        </userControls:ReservoirPump>        <Label  Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="Booster Pump" Canvas.Left="86" Canvas.Top="112" HorizontalAlignment="Center" VerticalAlignment="Top" />        <Label  Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="Degas Pump" Canvas.Left="86" Canvas.Top="239" HorizontalAlignment="Center" VerticalAlignment="Top" />        <Label  Height="20" Width="100" FontSize="10"  FontWeight="Bold" Content="Vacuum Pump" Canvas.Left="376" Canvas.Top="716" HorizontalAlignment="Center" VerticalAlignment="Top" />        <Label  Height="20" Width="51" FontSize="10"  FontWeight="Bold" Content="DIW In" Canvas.Left="17" Canvas.Top="86" HorizontalAlignment="Center" VerticalAlignment="Top" />        <Label  Height="26" Width="63" FontSize="10"  FontWeight="Bold" Content="N2 Purge" Canvas.Left="698" Canvas.Top="18" HorizontalAlignment="Center" VerticalAlignment="Top" />        <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwUp.png" Height="84"  Width="254"  HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="182" Canvas.Top="280"/>        <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwUp.png" Height="84"  Width="254"  HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="446" Canvas.Top="280"/>        <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwCell.png" Height="236"  Width="236"  HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="183" Canvas.Top="368"/>        <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwCell.png" Height="236"  Width="236"  HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="440" Canvas.Top="368"/>        <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwShelf.png" Height="186"  Width="292"  HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="276" Canvas.Top="398"/>        <userControls:FlowPipe  Height="6" Width="180" IsFlowing="{Binding IsBoosterPumpOpen,ElementName=self}" IsReverse="False" Panel.ZIndex="-1" Canvas.Left="71" Canvas.Top="95" HorizontalAlignment="Center" VerticalAlignment="Top" />        <userControls:FlowPipe  Height="6" Width="360"  IsReverse="False" Panel.ZIndex="-1" Canvas.Left="261" Canvas.Top="95" HorizontalAlignment="Center" VerticalAlignment="Top" >            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsBoosterPumpOpen" />                    <Binding ElementName="self" Path="DIWProcessValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="6" Width="400"  IsReverse="True" Panel.ZIndex="-1" Canvas.Left="330" Canvas.Top="241" HorizontalAlignment="Center" VerticalAlignment="Top" >            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsBoosterPumpOpen" />                    <Binding ElementName="self" Path="DIWDegasValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="6" Width="100"  IsReverse="False" Panel.ZIndex="-1" Canvas.Left="630" Canvas.Top="95" HorizontalAlignment="Center" VerticalAlignment="Top" >            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsBoosterPumpOpen" />                    <Binding ElementName="self" Path="DIWDegasValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="8"  Width="124"  IsReverse="True" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="418" Canvas.Top="95">            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsDegasPumpOpen" />                    <Binding ElementName="self" Path="DegasAdjustValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe Height="8"  Width="150"  RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="730" Canvas.Top="95">            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsBoosterPumpOpen" />                    <Binding ElementName="self" Path="DIWDegasValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="8"  Width="80"  RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="530" Canvas.Top="241">            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsBoosterPumpOpen" />                    <Binding ElementName="self" Path="DIWDegasValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="8"  Width="80"  RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="338" Canvas.Top="241">            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsBoosterPumpOpen" />                    <Binding ElementName="self" Path="DIWDegasValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe IsReverse="True" IsFlowing="{Binding IsVacuumPumpOpen,Mode=TwoWay,ElementName=self}" Height="8"  Width="40"  RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="437" Canvas.Top="617"/>        <userControls:FlowPipe  Height="8"  Width="40"  RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="304" Canvas.Top="569">            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsVacuumPumpOpen" />                    <Binding ElementName="self" Path="VPW1VACValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="8"  Width="40"  RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="564" Canvas.Top="569">            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsVacuumPumpOpen" />                    <Binding ElementName="self" Path="VPW2VACValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="6" Width="160" IsFlowing="{Binding IsDegasPumpOpen,ElementName=self}" IsReverse="False" Panel.ZIndex="-1" Canvas.Left="100" Canvas.Top="213" HorizontalAlignment="Center" VerticalAlignment="Top" />        <userControls:FlowPipe  Height="6" Width="160" IsReverse="False" Panel.ZIndex="-1" Canvas.Left="255" Canvas.Top="213" HorizontalAlignment="Center" VerticalAlignment="Top" >            <userControls:FlowPipe.IsFlowing>                <MultiBinding Converter="{StaticResource mutiBoolToBool}">                    <Binding  ElementName="self" Path="IsDegasPumpOpen" />                    <Binding ElementName="self" Path="DegasAdjustValve"/>                </MultiBinding>            </userControls:FlowPipe.IsFlowing>        </userControls:FlowPipe>        <userControls:FlowPipe  Height="6" Width="135" IsFlowing="{Binding IsVacuumPumpOpen,ElementName=self}" IsReverse="True" Panel.ZIndex="-1" Canvas.Left="296" Canvas.Top="612" HorizontalAlignment="Center" VerticalAlignment="Top" />        <userControls:FlowPipe  Height="6" Width="135" IsFlowing="{Binding IsVacuumPumpOpen,ElementName=self}" IsReverse="False" Panel.ZIndex="-1" Canvas.Left="430" Canvas.Top="612" HorizontalAlignment="Center" VerticalAlignment="Top" />        <Canvas Width="40" Height="20" Canvas.Left="710" Canvas.Top="55" HorizontalAlignment="Center" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" >            <Canvas.RenderTransform>                <TransformGroup>                    <ScaleTransform/>                    <SkewTransform/>                    <RotateTransform Angle="-89.31"/>                    <TranslateTransform/>                </TransformGroup>            </Canvas.RenderTransform>            <Polygon Width="10" Points="0,10 20,0 20,20" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center">                <Polygon.Style>                    <Style TargetType="Polygon">                        <Setter Property="Fill" Value="Black"/>                        <Style.Triggers>                            <DataTrigger Binding="{Binding N2Valve,ElementName=self}" Value="true">                                <Setter Property="Fill" Value="lime" />                            </DataTrigger>                        </Style.Triggers>                    </Style>                </Polygon.Style>            </Polygon>                        <Polygon Points="0,0 30,0 30,4 0,4" StrokeThickness="1" Canvas.Left="10" Canvas.Top="8" HorizontalAlignment="Left" VerticalAlignment="Center">                <Polygon.Style>                    <Style TargetType="Polygon">                        <Setter Property="Fill" Value="Black"/>                        <Style.Triggers>                            <DataTrigger Binding="{Binding N2Valve,ElementName=self}" Value="true">                                <Setter Property="Fill" Value="lime" />                            </DataTrigger>                        </Style.Triggers>                    </Style>                </Polygon.Style>            </Polygon>        </Canvas>                <Grid Height="50" Width="120" Canvas.Left="229" Canvas.Top="265" HorizontalAlignment="Left" VerticalAlignment="Top"  >            <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="Cell1 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=Cell1DIWFlow}" 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="529" Canvas.Top="265" HorizontalAlignment="Left" VerticalAlignment="Top"  >            <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="Cell2 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=Cell2DIWFlow}" 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>        <Canvas Height="30" Width="150" Canvas.Left="228" Canvas.Top="354" 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=VPW1WaferInfo}"/>            </Viewbox>        </Canvas>        <Canvas Height="30" Width="150" Canvas.Left="488" Canvas.Top="354" 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=VPW2WaferInfo}"/>            </Viewbox>        </Canvas>    </Canvas></UserControl>
 |