| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802 | <UserControl x:Class="PunkHPX8_MainPages.Views.JobOperationView"             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:local="clr-namespace:PunkHPX8_MainPages.Views"             mc:Ignorable="d"                          xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"             xmlns:customControls="clr-namespace:PunkHPX8_Themes.CustomControls;assembly=PunkHPX8_Themes"             xmlns:Attach="clr-namespace:PunkHPX8_UI.Themes.Attach;assembly=PunkHPX8_Themes"             xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters;assembly=PunkHPX8_Themes"             xmlns:converters2="clr-namespace:PunkHPX8_MainPages.Converters"             xmlns:userControls="clr-namespace:PunkHPX8_Themes.UserControls;assembly=PunkHPX8_Themes"             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"             xmlns:prism="http://prismlibrary.com/"             prism:ViewModelLocator.AutoWireViewModel="True"             xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"                       xmlns:unity="clr-namespace:PunkHPX8_MainPages.Unity"             xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"             d:DesignHeight="1200" d:DesignWidth="1920" x:Name="jobOperationView">    <UserControl.Resources>        <converters:BoolToVisibility2 x:Key="BoolToVisibility2"/>        <converters:BoolToVisibility x:Key="BoolToVisibility"/>        <Style x:Key="LP1Style">            <Style.Triggers>                <DataTrigger Binding="{Binding RtDataValues[LP1.IsLoaded]}" Value="True">                    <DataTrigger.EnterActions>                        <BeginStoryboard>                            <Storyboard>                                <DoubleAnimation  Storyboard.TargetProperty="RenderTransform.Children[0].X" To="30" Duration="0:0:1"/>                            </Storyboard>                        </BeginStoryboard>                    </DataTrigger.EnterActions>                    <DataTrigger.ExitActions>                        <BeginStoryboard>                            <Storyboard>                                <DoubleAnimation  Storyboard.TargetProperty="RenderTransform.Children[0].X" To="0" Duration="0:0:1"/>                            </Storyboard>                        </BeginStoryboard>                    </DataTrigger.ExitActions>                </DataTrigger>            </Style.Triggers>        </Style>        <Style x:Key="LP2Style">            <Style.Triggers>                <DataTrigger Binding="{Binding RtDataValues[LP2.IsLoaded]}" Value="True">                    <DataTrigger.EnterActions>                        <BeginStoryboard>                            <Storyboard>                                <DoubleAnimation  Storyboard.TargetProperty="RenderTransform.Children[0].X" To="30" Duration="0:0:1"/>                            </Storyboard>                        </BeginStoryboard>                    </DataTrigger.EnterActions>                    <DataTrigger.ExitActions>                        <BeginStoryboard>                            <Storyboard>                                <DoubleAnimation  Storyboard.TargetProperty="RenderTransform.Children[0].X" To="0" Duration="0:0:1"/>                            </Storyboard>                        </BeginStoryboard>                    </DataTrigger.ExitActions>                </DataTrigger>            </Style.Triggers>        </Style>        <Style x:Key="LP3Style">            <Style.Triggers>                <DataTrigger Binding="{Binding RtDataValues[LP3.IsLoaded]}" Value="True">                    <DataTrigger.EnterActions>                        <BeginStoryboard>                            <Storyboard>                                <DoubleAnimation  Storyboard.TargetProperty="RenderTransform.Children[0].X" To="30" Duration="0:0:1"/>                            </Storyboard>                        </BeginStoryboard>                    </DataTrigger.EnterActions>                    <DataTrigger.ExitActions>                        <BeginStoryboard>                            <Storyboard>                                <DoubleAnimation  Storyboard.TargetProperty="RenderTransform.Children[0].X" To="0" Duration="0:0:1"/>                            </Storyboard>                        </BeginStoryboard>                    </DataTrigger.ExitActions>                </DataTrigger>            </Style.Triggers>        </Style>        <converters:MutiBoolToBool x:Key="mutiBoolToBool"/>    </UserControl.Resources>    <Canvas>        <Grid Canvas.Left="116" Canvas.Top="104" Panel.ZIndex="2" Visibility="{Binding LP1Unable,Converter={StaticResource bool2VisibilityConverter}}">            <Rectangle  Width="70" Height="70" Fill="Silver"  Opacity="0.8" RadiusX="0.1" RadiusY="0.1"            />        </Grid>        <Grid Canvas.Left="116" Canvas.Top="247" Panel.ZIndex="2" Visibility="{Binding LP2Unable,Converter={StaticResource bool2VisibilityConverter}}">            <Rectangle  Width="70" Height="70" Fill="Silver"  Opacity="0.8" RadiusX="0.1" RadiusY="0.1"/>        </Grid>        <Grid Canvas.Left="116" Canvas.Top="378" Panel.ZIndex="2" Visibility="{Binding LP3Unable,Converter={StaticResource bool2VisibilityConverter}}">            <Rectangle  Width="70" Height="70" Fill="Silver"  Opacity="0.8" RadiusX="0.1" RadiusY="0.1"                />        </Grid>        <Canvas Canvas.Top="74" Height="1126" Width="1920" HorizontalAlignment="Center" VerticalAlignment="Top">            <Canvas Height="406" Width="448" HorizontalAlignment="Left" Canvas.Left="42" VerticalAlignment="Center">                <Grid Height="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Canvas}},Path=Height}" Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Canvas}},Path=Width}" Background="{DynamicResource Table_BG_Content}">                    <Grid.RowDefinitions>                        <RowDefinition/>                        <RowDefinition/>                        <RowDefinition/>                    </Grid.RowDefinitions>                    <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,0" Background="{DynamicResource Table_BG_Content}" Grid.Row="0" Padding="5,1,0,1">                        <Grid Margin="206,5,5,5" >                            <Grid.RowDefinitions>                                <RowDefinition/>                                <RowDefinition/>                            </Grid.RowDefinitions>                            <Grid.ColumnDefinitions>                                <ColumnDefinition/>                                <ColumnDefinition/>                            </Grid.ColumnDefinitions>                            <StackPanel Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">                                <TextBlock Text="Wafer Count:" FontSize="15" FontFamily="Arial" Margin="15,0,20,0"/>                                <TextBlock Text="{Binding LP1WaferCount}" FontSize="15" FontFamily="Arial"/>                            </StackPanel>                            <customControls:PathButton  Grid.Row="1" IsEnabled="{Binding IsLP1Unable}" Content="Map" Width="90" Height="33" Command="{Binding LPMapCommand}"   CommandParameter="LP1"/>                                                   </Grid>                    </Border>                    <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,0" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Padding="5,1,0,1">                        <Grid Grid.Row="1" Margin="206,0,0,0">                            <Grid.RowDefinitions>                                <RowDefinition/>                                <RowDefinition/>                            </Grid.RowDefinitions>                            <Grid.ColumnDefinitions>                                <ColumnDefinition/>                                <ColumnDefinition/>                            </Grid.ColumnDefinitions>                            <StackPanel Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">                                <TextBlock Text="Wafer Count:" FontSize="15" FontFamily="Arial" Margin="15,0,20,0"/>                                <TextBlock Text="{Binding LP2WaferCount}" FontSize="15" FontFamily="Arial"/>                            </StackPanel>                            <customControls:PathButton Grid.Row="1" IsEnabled="{Binding IsLP2Unable}" Content="Map" Width="90" Height="33" Command="{Binding LPMapCommand}"   CommandParameter="LP2"/>                        </Grid>                    </Border>                    <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Padding="5,1,0,1">                        <Grid Grid.Row="2" Margin="206,0,0,0">                            <Grid.RowDefinitions>                                <RowDefinition/>                                <RowDefinition/>                            </Grid.RowDefinitions>                            <Grid.ColumnDefinitions>                                <ColumnDefinition/>                                <ColumnDefinition/>                            </Grid.ColumnDefinitions>                            <StackPanel Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">                                <TextBlock Text="Wafer Count:" FontSize="15" FontFamily="Arial" Margin="15,0,20,0"/>                                <TextBlock Text="{Binding LP3WaferCount}" FontSize="15" FontFamily="Arial"/>                            </StackPanel>                            <customControls:PathButton Grid.Row="1" IsEnabled="{Binding IsLP3Unable}" Content="Map" Width="90" Height="33" Command="{Binding LPMapCommand}"   CommandParameter="LP3"/>                        </Grid>                    </Border>                </Grid>                <Viewbox Stretch="Fill" Height="330" Width="330" Canvas.Left="158" Canvas.Top="10" HorizontalAlignment="Left" VerticalAlignment="Top">                    <Canvas Width="1000" Height="1000">                        <userControls:Loadport Canvas.Top="20" Width="300" Height="300" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Top"/>                        <userControls:Foup Width="230" Height="450" Canvas.Left="-35"  Canvas.Top="53" Visibility="{Binding RtDataValues[LP1.CassettePlaced],Converter={StaticResource BoolToVisibility2}}" Style="{StaticResource LP1Style}" RotateTransformValue="90">                            <userControls:Foup.RenderTransform>                                <TransformGroup>                                    <TranslateTransform/>                                </TransformGroup>                            </userControls:Foup.RenderTransform>                        </userControls:Foup>                    </Canvas>                </Viewbox>                <Viewbox Stretch="Fill" Height="330" Width="330" Canvas.Left="158" Canvas.Top="152" HorizontalAlignment="Left" VerticalAlignment="Center">                    <Canvas Width="1000" Height="1000">                        <userControls:Loadport Canvas.Top="20" Width="300" Height="300" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Top"/>                        <userControls:Foup Width="230" Height="450" Canvas.Left="-35"  Canvas.Top="53"   Visibility="{Binding RtDataValues[LP2.CassettePlaced],Converter={StaticResource BoolToVisibility2}}" Style="{StaticResource LP2Style}"  RotateTransformValue="90">                            <userControls:Foup.RenderTransform>                                <TransformGroup>                                    <TranslateTransform/>                                </TransformGroup>                            </userControls:Foup.RenderTransform>                        </userControls:Foup>                    </Canvas>                </Viewbox>                <Viewbox Stretch="Fill" Height="330" Width="330" Canvas.Left="158" Canvas.Top="283" HorizontalAlignment="Left" VerticalAlignment="Top">                    <Canvas Width="1000" Height="1000">                        <userControls:Loadport Canvas.Top="20" Width="300" Height="300" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Top"/>                        <userControls:Foup Width="230" Height="450" Canvas.Left="-35"  Canvas.Top="53"  Visibility="{Binding RtDataValues[LP3.CassettePlaced],Converter={StaticResource BoolToVisibility2}}" Style="{StaticResource LP3Style}"  RotateTransformValue="90">                            <userControls:Foup.RenderTransform>                                <TransformGroup>                                    <TranslateTransform/>                                </TransformGroup>                            </userControls:Foup.RenderTransform>                        </userControls:Foup>                    </Canvas>                </Viewbox>            </Canvas>            <Grid Height="AUTO" Width="1800" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="60" Canvas.Top="-40" >                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="2.5*"/>                    <ColumnDefinition Width="2.5*"/>                    <ColumnDefinition Width="2.5*"/>                    <ColumnDefinition Width="2.5*"/>                </Grid.ColumnDefinitions>                <Grid Grid.Column="1" HorizontalAlignment="Center" unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="Black" Background="{DynamicResource Table_BG_Content}" Width="AUTO" >                    <Grid.RowDefinitions>                        <RowDefinition Height="AUTO"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height ="1*"></RowDefinition>                    </Grid.RowDefinitions>                    <Label Content="LP1"  Background="{DynamicResource Table_BG_Title}" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Grid.Row="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                    <StackPanel Grid.Row="1" Orientation="Horizontal">                        <TextBlock Margin="5,0,0,0" Text="Lot ID:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <TextBox Margin="5,3,0,3" FontSize="15" Text="{Binding LP1WaferAssociation.LotId}" Width="242" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" RenderTransformOrigin="0.319,0.594" IsEnabled="{Binding ButtonIsEnableLP1}"/>                    </StackPanel>                    <StackPanel Grid.Row="2" Orientation="Horizontal">                        <TextBlock Margin="5,0,10,0" Text="Sequence Type:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="111"></TextBlock>                        <CheckBox Margin="5" Content="Engineering" VerticalAlignment="Center" IsChecked="{Binding LP1RecipeMode,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding ButtonIsEnableLP1}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Checked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP1WaferAssociation}"/>                                </i:EventTrigger>                                <i:EventTrigger EventName="Unchecked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP1WaferAssociation}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </CheckBox>                        <CheckBox Margin="5" Content="Production" VerticalAlignment="Center" IsChecked="{Binding LP1RecipeMode}" IsEnabled="{Binding ButtonIsEnableLP1}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Checked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP1WaferAssociation}"/>                                </i:EventTrigger>                                <i:EventTrigger EventName="Unchecked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP1WaferAssociation}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </CheckBox>                    </StackPanel>                    <StackPanel Grid.Row="3" Orientation="Horizontal">                        <TextBlock Margin="5,0,0,0" Text="Sequence:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <ComboBox Margin="5,3,0,3" Width="242" SelectedItem="{Binding LP1SequenceName}" ItemsSource="{Binding SequenceSelectedItemsSource1}" IsEnabled="{Binding ButtonIsEnableLP1}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="SelectionChanged">                                    <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding LP1WaferAssociation.ModuleData.ModuleID}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </ComboBox>                    </StackPanel>                    <Grid Grid.Row="4" >                        <Grid.ColumnDefinitions>                            <ColumnDefinition/>                            <ColumnDefinition/>                        </Grid.ColumnDefinitions>                        <StackPanel Orientation="Horizontal" >                            <TextBlock Text="Cycle Set:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="65"></TextBlock>                            <CheckBox Margin="5" x:Name="IsEnableCycleCheckBox1" Content="IsEnable" VerticalAlignment="Center" Padding="3 0 0 0"  IsEnabled="{Binding ButtonIsEnableLP1}" IsChecked="{Binding LP1WaferAssociation.IsEnableCycle}"/>                        </StackPanel>                        <StackPanel Orientation="Horizontal" Grid.Column="1">                            <TextBlock Text="Cycle Num:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                            <TextBox x:Name="CycleNumTextbox1" Margin="5,0,0,0" Width="72" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="20" BorderThickness="1"  Text="{Binding LP1WaferAssociation.CycleNumber}" >                                <TextBox.IsEnabled>                                    <MultiBinding Converter="{StaticResource mutiBoolToBool}">                                        <Binding Path="ButtonIsEnableLP1" />                                        <Binding ElementName="IsEnableCycleCheckBox1" Path="IsChecked"/>                                    </MultiBinding>                                </TextBox.IsEnabled>                            </TextBox>                        </StackPanel>                    </Grid>                    <StackPanel Grid.Row="5" Orientation="Horizontal">                        <TextBlock Text="Cycle Info:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <TextBlock FontSize="12" FontFamily="Arial" VerticalAlignment="Center">                            <TextBlock.Text>                                <MultiBinding StringFormat="{}{0}/{1}      Wafer Count:  {2}" >                                    <Binding Path="RtDataValues[LP1.CycleSetPoint]"></Binding>                                    <Binding Path="RtDataValues[LP1.CycledCount]"></Binding>                                    <Binding Path="RtDataValues[LP1.CycledWafer]"></Binding>                                </MultiBinding>                            </TextBlock.Text>                        </TextBlock>                    </StackPanel>                    <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button Content="Select All" Width="94"  Height="28" Margin="10,2,10,2" Command="{Binding SelectAllCommand}"   CommandParameter="{Binding LP1WaferAssociation}"/>                        <Button Content="DeSelect All" Width="94"  Height="28" Margin="-5,2,10,2" Command="{Binding UnSelectAllCommand}"   CommandParameter="{Binding LP1WaferAssociation}"/>                    </StackPanel>                    <Grid Grid.Row="7" >                        <Grid.ColumnDefinitions>                            <ColumnDefinition/>                            <ColumnDefinition/>                        </Grid.ColumnDefinitions>                        <StackPanel Grid.Column="0" Orientation="Horizontal">                            <TextBlock Margin="5,0,0,0" Text="Name:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="52"/>                            <TextBox Margin="0,3,0,3" FontSize="15" Text="{Binding LP1WaferAssociation.JobID}" Width="109" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" RenderTransformOrigin="0.319,0.594" IsEnabled="{Binding ButtonIsEnableLP1}"/>                        </StackPanel>                        <StackPanel Grid.Column="1" Orientation="Horizontal">                            <TextBlock Margin="5,0,0,0" Text="Status:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="52"/>                            <TextBox Margin="0,3,0,3" FontSize="15" Text="{Binding LP1WaferAssociation.JobStatus}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="115" RenderTransformOrigin="0.319,0.594" IsEnabled="False"/>                        </StackPanel>                    </Grid>                    <StackPanel Grid.Row="8" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button IsEnabled="{Binding IsLP1CanCreatedJob}" Content="Create Job" Width="94"  Height="28" Margin="10,2,10,2" Command="{Binding CreateJobCommand}" CommandParameter="{Binding LP1WaferAssociation}"/>                    </StackPanel>                    <StackPanel Grid.Row="9" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button  IsEnabled="{Binding IsLP1AutoStoped}" Content="Start" Width="64"  Height="28" Margin="10,2,10,2" Command="{Binding StartCommand}" CommandParameter="{Binding LP1WaferAssociation}"/>                        <Button IsEnabled="{Binding IsLP1AutoStarted}" Content="Stop" Width="64"  Height="28" Margin="10,2,10,2" Command="{Binding StopCommand}" CommandParameter="{Binding LP1WaferAssociation}"/>                    </StackPanel>                    <ListBox Grid.Row="10" ItemsSource="{Binding LP1WaferAssociation.ModuleData.WaferManager.Wafers}" Name="list1" IsEnabled="{Binding IsLP1Unable}">                        <ListBox.Resources>                            <Style TargetType="ListBoxItem" BasedOn="{StaticResource ResourceKey={x:Type ListBoxItem}}">                                <Setter Property="Rectangle.StrokeThickness" Value="1"/>                            </Style>                        </ListBox.Resources>                        <ListBox.ItemTemplate>                            <DataTemplate>                                <Grid Height="18" Background="#F5F7FA">                                    <Grid.ColumnDefinitions>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                    </Grid.ColumnDefinitions>                                    <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Width="110" >                                        <controls:Slot ViewType="Bottom"  WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}"                                                            SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8,1,8,1"                                                            SlotMouseButtonDown="Slot_SlotMouseButtonDown" WaferTransferStarted="Slot_WaferTransferStarted" FontFamily="Arial" FontSize="2">                                        </controls:Slot>                                    </Border>                                    <Border Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Width="200" >                                        <Border.Style>                                            <Style>                                                <Style.Triggers>                                                    <DataTrigger Binding="{Binding WaferStatus}" Value="0">                                                        <Setter Property="Border.Background" Value="AliceBlue"/>                                                    </DataTrigger>                                                    <DataTrigger Binding="{Binding WaferStatus}" Value="1">                                                        <Setter Property="Border.Background" Value="AliceBlue"/>                                                    </DataTrigger>                                                </Style.Triggers>                                            </Style>                                        </Border.Style>                                        <TextBlock Name="txtSeqName"  Text="{Binding SequenceName}" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>                                    </Border>                                    <Border  Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1"  Width="110" Padding="5,1" >                                        <Button Width="60" Height="14" Command="{Binding Path=DataContext.SetSequenceCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListBox}}" CommandParameter="{Binding}" IsEnabled="{Binding ButtonIsEnableLP1}">                                            <Button.Style>                                                <Style TargetType="{x:Type Button}" BasedOn="{StaticResource ResourceKey={x:Type Button}}">                                                    <Setter Property="Button.Content" Value="Remove"/>                                                    <Setter Property="FontSize" Value="10" />                                                    <Style.Triggers>                                                        <DataTrigger Binding="{Binding ElementName=txtSeqName, Path=Text}" Value="{x:Static sys:String.Empty}">                                                            <Setter Property="Button.Content" Value="Set"/>                                                        </DataTrigger>                                                        <DataTrigger Binding="{Binding WaferStatus}" Value="0">                                                            <Setter Property="Button.IsEnabled" Value="False"/>                                                        </DataTrigger>                                                    </Style.Triggers>                                                </Style>                                            </Button.Style>                                        </Button>                                    </Border>                                </Grid>                            </DataTemplate>                        </ListBox.ItemTemplate>                    </ListBox>                </Grid>                <Grid Grid.Column="2" HorizontalAlignment="Center" unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="Black" Background="{DynamicResource Table_BG_Content}" Width="AUTO" >                    <Grid.RowDefinitions>                        <RowDefinition Height="AUTO"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height ="1*"></RowDefinition>                    </Grid.RowDefinitions>                    <Label Content="LP2"  Background="{DynamicResource Table_BG_Title}" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Grid.Row="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                    <StackPanel Grid.Row="1" Orientation="Horizontal">                        <TextBlock Margin="5,0,0,0" Text="Lot ID:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <TextBox Margin="5,3,0,3" FontSize="15" Text="{Binding LP2WaferAssociation.LotId}" Width="242" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" RenderTransformOrigin="0.319,0.594" IsEnabled="{Binding ButtonIsEnableLP2}" />                    </StackPanel>                    <StackPanel Grid.Row="2" Orientation="Horizontal">                        <TextBlock Margin="5,0,10,0" Text="Sequence Type:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="111"></TextBlock>                        <CheckBox Margin="5" Content="Engineering" VerticalAlignment="Center" IsChecked="{Binding LP2RecipeMode,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding ButtonIsEnableLP2}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Checked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP2WaferAssociation}"/>                                </i:EventTrigger>                                <i:EventTrigger EventName="Unchecked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP2WaferAssociation}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </CheckBox>                        <CheckBox Margin="5" Content="Production" VerticalAlignment="Center" IsChecked="{Binding LP2RecipeMode}" IsEnabled="{Binding ButtonIsEnableLP2}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Checked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP2WaferAssociation}"/>                                </i:EventTrigger>                                <i:EventTrigger EventName="Unchecked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP2WaferAssociation}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </CheckBox>                    </StackPanel>                    <StackPanel Grid.Row="3" Orientation="Horizontal">                        <TextBlock Margin="5,0,0,0" Text="Sequence:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <ComboBox Margin="5,3,0,3" Width="242" SelectedItem="{Binding LP2SequenceName}" ItemsSource="{Binding SequenceSelectedItemsSource2}" IsEnabled="{Binding ButtonIsEnableLP2}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="SelectionChanged">                                    <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding LP2WaferAssociation.ModuleData.ModuleID}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </ComboBox>                    </StackPanel>                    <Grid Grid.Row="4" >                        <Grid.ColumnDefinitions>                            <ColumnDefinition/>                            <ColumnDefinition/>                        </Grid.ColumnDefinitions>                        <StackPanel Orientation="Horizontal" >                            <TextBlock Text="Cycle Set:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="65"></TextBlock>                            <CheckBox Margin="5" x:Name="IsEnableCycleCheckBox2" Content="IsEnable" IsChecked="{Binding LP2WaferAssociation.IsEnableCycle}" IsEnabled="{Binding ButtonIsEnableLP2}" VerticalAlignment="Center" Padding="3 0 0 0"/>                        </StackPanel>                        <StackPanel Orientation="Horizontal" Grid.Column="1">                            <TextBlock Text="Cycle Num:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                            <TextBox x:Name="CycleNumTextbox2" Margin="5,0,0,0" Width="72" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="20" BorderThickness="1"  Text="{Binding LP2WaferAssociation.CycleNumber}">                                <TextBox.IsEnabled>                                    <MultiBinding Converter="{StaticResource mutiBoolToBool}">                                        <Binding Path="ButtonIsEnableLP2" />                                        <Binding ElementName="IsEnableCycleCheckBox2" Path="IsChecked"/>                                    </MultiBinding>                                </TextBox.IsEnabled>                            </TextBox>                        </StackPanel>                    </Grid>                    <StackPanel Grid.Row="5" Orientation="Horizontal">                        <TextBlock Text="Cycle Info:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <TextBlock FontSize="12" FontFamily="Arial" VerticalAlignment="Center">                            <TextBlock.Text>                                <MultiBinding StringFormat="{}{0}/{1}      Wafer Count:  {2}" >                                    <Binding Path="RtDataValues[LP2.CycleSetPoint]"></Binding>                                    <Binding Path="RtDataValues[LP2.CycledCount]"></Binding>                                    <Binding Path="RtDataValues[LP2.CycledWafer]"></Binding>                                </MultiBinding>                            </TextBlock.Text>                        </TextBlock>                    </StackPanel>                    <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button Content="Select All" Width="94"  Height="28" Margin="10,2,10,2" Command="{Binding SelectAllCommand}"   CommandParameter="{Binding LP2WaferAssociation}"/>                        <Button Content="DeSelect All" Width="94"  Height="28" Margin="-5,2,10,2" Command="{Binding UnSelectAllCommand}"   CommandParameter="{Binding LP2WaferAssociation}"/>                    </StackPanel>                    <Grid Grid.Row="7" >                        <Grid.ColumnDefinitions>                            <ColumnDefinition/>                            <ColumnDefinition/>                        </Grid.ColumnDefinitions>                        <StackPanel Orientation="Horizontal" >                            <TextBlock Margin="5,0,0,0" Text="Name:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="52"></TextBlock>                            <TextBox Margin="0,3,0,3" FontSize="15" Text="{Binding LP2WaferAssociation.JobID}" Width="101" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" RenderTransformOrigin="0.319,0.594" IsEnabled="{Binding ButtonIsEnableLP2}"/>                        </StackPanel>                        <StackPanel Orientation="Horizontal" Grid.Column="1">                            <TextBlock Margin="5,0,0,0" Text="Status:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="52"></TextBlock>                            <TextBox Margin="0,3,0,3" FontSize="15" IsEnabled="False" Text="{Binding LP2WaferAssociation.JobStatus}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="115" RenderTransformOrigin="0.319,0.594"/>                        </StackPanel>                    </Grid>                    <StackPanel Grid.Row="8" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button IsEnabled="{Binding IsLP2CanCreatedJob}" Content="Create Job" Width="94"  Height="28" Margin="10,2,10,2" Command="{Binding CreateJobCommand}" CommandParameter="{Binding LP2WaferAssociation}"/>                    </StackPanel>                    <StackPanel Grid.Row="9" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button IsEnabled="{Binding IsLP2AutoStoped}" Content="Start" Width="64"  Height="28" Margin="10,2,10,2" Command="{Binding StartCommand}" CommandParameter="{Binding LP2WaferAssociation}"/>                        <Button IsEnabled="{Binding IsLP2AutoStarted}" Content="Stop" Width="64"  Height="28" Margin="10,2,10,2" Command="{Binding StopCommand}" CommandParameter="{Binding LP2WaferAssociation}"/>                    </StackPanel>                    <ListBox Grid.Row="10" ItemsSource="{Binding LP2WaferAssociation.ModuleData.WaferManager.Wafers}" Name="list2" IsEnabled="{Binding IsLP2Unable}">                        <ListBox.Resources>                            <Style TargetType="ListBoxItem" BasedOn="{StaticResource ResourceKey={x:Type ListBoxItem}}">                                <Setter Property="Rectangle.StrokeThickness" Value="1"/>                            </Style>                        </ListBox.Resources>                        <ListBox.ItemTemplate>                            <DataTemplate>                                <Grid Height="18" Background="#F5F7FA">                                    <Grid.ColumnDefinitions>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                    </Grid.ColumnDefinitions>                                    <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Width="110" >                                        <controls:Slot ViewType="Bottom"  WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}"                                                        SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8,1,8,1"                                                        SlotMouseButtonDown="Slot_SlotMouseButtonDown" WaferTransferStarted="Slot_WaferTransferStarted" FontFamily="Arial" FontSize="2">                                        </controls:Slot>                                    </Border>                                    <Border Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Width="200" >                                        <Border.Style>                                            <Style>                                                <Style.Triggers>                                                    <DataTrigger Binding="{Binding WaferStatus}" Value="0">                                                        <Setter Property="Border.Background" Value="AliceBlue"/>                                                    </DataTrigger>                                                    <DataTrigger Binding="{Binding WaferStatus}" Value="1">                                                        <Setter Property="Border.Background" Value="AliceBlue"/>                                                    </DataTrigger>                                                </Style.Triggers>                                            </Style>                                        </Border.Style>                                        <TextBlock Name="txtSeqName"  Text="{Binding SequenceName}" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>                                    </Border>                                    <Border  Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1"  Width="110" Padding="5,1" >                                        <Button Width="60" Height="14"  Command="{Binding Path=DataContext.SetSequenceCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListBox}}" CommandParameter="{Binding}" IsEnabled="{Binding ButtonIsEnableLP1}">                                            <Button.Style>                                                <Style TargetType="{x:Type Button}" BasedOn="{StaticResource ResourceKey={x:Type Button}}">                                                    <Setter Property="Button.Content" Value="Remove"/>                                                    <Setter Property="FontSize" Value="10" />                                                    <Style.Triggers>                                                        <DataTrigger Binding="{Binding ElementName=txtSeqName, Path=Text}" Value="{x:Static sys:String.Empty}">                                                            <Setter Property="Button.Content" Value="Set"/>                                                        </DataTrigger>                                                        <DataTrigger Binding="{Binding WaferStatus}" Value="0">                                                            <Setter Property="Button.IsEnabled" Value="False"/>                                                        </DataTrigger>                                                    </Style.Triggers>                                                </Style>                                            </Button.Style>                                        </Button>                                    </Border>                                </Grid>                            </DataTemplate>                        </ListBox.ItemTemplate>                    </ListBox>                </Grid>                <Grid Grid.Column="3" HorizontalAlignment="Center" unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="Black" Background="{DynamicResource Table_BG_Content}" Width="AUTO" >                    <Grid.RowDefinitions>                        <RowDefinition Height="AUTO"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height="33"></RowDefinition>                        <RowDefinition Height ="1*"></RowDefinition>                    </Grid.RowDefinitions>                    <Label Content="LP3"  Background="{DynamicResource Table_BG_Title}" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Grid.Row="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                    <StackPanel Grid.Row="1" Orientation="Horizontal">                        <TextBlock Margin="5,0,0,0" Text="Lot ID:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <TextBox Margin="5,3,0,3" FontSize="15" Text="{Binding LP3WaferAssociation.LotId}" Width="242" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" RenderTransformOrigin="0.319,0.594" IsEnabled="{Binding ButtonIsEnableLP3}"/>                    </StackPanel>                    <StackPanel Grid.Row="2" Orientation="Horizontal">                        <TextBlock Margin="5,0,10,0" Text="Sequence Type:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="111"></TextBlock>                        <CheckBox Margin="5" Content="Engineering" VerticalAlignment="Center" IsChecked="{Binding LP3RecipeMode,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding ButtonIsEnableLP3}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Checked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP3WaferAssociation}"/>                                </i:EventTrigger>                                <i:EventTrigger EventName="Unchecked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP3WaferAssociation}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </CheckBox>                        <CheckBox Margin="5" Content="Production" VerticalAlignment="Center" IsChecked="{Binding LP3RecipeMode}" IsEnabled="{Binding ButtonIsEnableLP3}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Checked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP3WaferAssociation}"/>                                </i:EventTrigger>                                <i:EventTrigger EventName="Unchecked">                                    <i:InvokeCommandAction Command="{Binding SeqTypeChangeCommand}" CommandParameter="{Binding LP3WaferAssociation}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </CheckBox>                    </StackPanel>                    <StackPanel Grid.Row="3" Orientation="Horizontal">                        <TextBlock Margin="5,0,0,0" Text="Sequence:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <ComboBox Margin="5,3,0,3" Width="242" SelectedItem="{Binding LP3SequenceName}" ItemsSource="{Binding SequenceSelectedItemsSource3}" IsEnabled="{Binding ButtonIsEnableLP3}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="SelectionChanged">                                    <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding LP3WaferAssociation.ModuleData.ModuleID}"/>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </ComboBox>                    </StackPanel>                    <Grid Grid.Row="4" >                        <Grid.ColumnDefinitions>                            <ColumnDefinition/>                            <ColumnDefinition/>                        </Grid.ColumnDefinitions>                        <StackPanel Orientation="Horizontal" >                            <TextBlock Text="Cycle Set:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="65"></TextBlock>                            <CheckBox Margin="5" x:Name="IsEnableCycleCheckBox3" Content="IsEnable" VerticalAlignment="Center" Padding="3 0 0 0"  IsEnabled="{Binding ButtonIsEnableLP3}" IsChecked="{Binding LP3WaferAssociation.IsEnableCycle}"/>                        </StackPanel>                        <StackPanel Orientation="Horizontal" Grid.Column="1">                            <TextBlock Text="Cycle Num:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                            <TextBox x:Name="CycleNumTextbox3" Margin="5,0,0,0" Width="72" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="20" BorderThickness="1"  Text="{Binding LP3WaferAssociation.CycleNumber}" >                                <TextBox.IsEnabled>                                    <MultiBinding Converter="{StaticResource mutiBoolToBool}">                                        <Binding Path="ButtonIsEnableLP3" />                                        <Binding ElementName="IsEnableCycleCheckBox3" Path="IsChecked"/>                                    </MultiBinding>                                </TextBox.IsEnabled>                            </TextBox>                        </StackPanel>                    </Grid>                    <StackPanel Grid.Row="5" Orientation="Horizontal">                        <TextBlock Text="Cycle Info:"  Margin="5,0,0,0" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>                        <TextBlock FontSize="12" FontFamily="Arial" VerticalAlignment="Center">                            <TextBlock.Text>                                <MultiBinding StringFormat="{}{0}/{1}      Wafer Count:  {2}" >                                    <Binding Path="RtDataValues[LP3.CycleSetPoint]"></Binding>                                    <Binding Path="RtDataValues[LP3.CycledCount]"></Binding>                                    <Binding Path="RtDataValues[LP3.CycledWafer]"></Binding>                                </MultiBinding>                            </TextBlock.Text>                        </TextBlock>                    </StackPanel>                    <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button Content="Select All" Width="94"  Height="28" Margin="10,2,10,2" Command="{Binding SelectAllCommand}"   CommandParameter="{Binding LP3WaferAssociation}"/>                        <Button Content="DeSelect All" Width="94"  Height="28" Margin="-5,2,10,2" Command="{Binding UnSelectAllCommand}"   CommandParameter="{Binding LP3WaferAssociation}"/>                    </StackPanel>                    <Grid Grid.Row="7" >                        <Grid.ColumnDefinitions>                            <ColumnDefinition/>                            <ColumnDefinition/>                        </Grid.ColumnDefinitions>                        <StackPanel Orientation="Horizontal" >                            <TextBlock Margin="5,0,0,0" Text="Name:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="52"></TextBlock>                            <TextBox Margin="0,3,0,3" FontSize="15" Text="{Binding LP3WaferAssociation.JobID}" Width="101" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" RenderTransformOrigin="0.319,0.594" IsEnabled="{Binding ButtonIsEnableLP3}"/>                        </StackPanel>                        <StackPanel Orientation="Horizontal" Grid.Column="1">                            <TextBlock Margin="5,0,0,0" Text="Status:"  TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="52"></TextBlock>                            <TextBox Margin="0,3,0,3" FontSize="15" IsEnabled="False" Text="{Binding LP3WaferAssociation.JobStatus}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="115" RenderTransformOrigin="0.319,0.594"/>                        </StackPanel>                    </Grid>                    <StackPanel Grid.Row="8" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button IsEnabled="{Binding IsLP3CanCreatedJob}" Content="Create Job" Width="94"  Height="28" Margin="10,2,10,2" Command="{Binding CreateJobCommand}" CommandParameter="{Binding LP3WaferAssociation}"/>                    </StackPanel>                    <StackPanel Grid.Row="9" Orientation="Horizontal" HorizontalAlignment="Center">                        <Button IsEnabled="{Binding IsLP3AutoStoped}" Content="Start" Width="64"  Height="28" Margin="10,2,10,2" Command="{Binding StartCommand}" CommandParameter="{Binding LP3WaferAssociation}"/>                        <Button IsEnabled="{Binding IsLP3AutoStarted}" Content="Stop" Width="64"  Height="28" Margin="10,2,10,2" Command="{Binding StopCommand}" CommandParameter="{Binding LP3WaferAssociation}"/>                    </StackPanel>                    <ListBox Grid.Row="10" ItemsSource="{Binding LP3WaferAssociation.ModuleData.WaferManager.Wafers}" Name="list3" IsEnabled="{Binding IsLP3Unable}">                        <ListBox.Resources>                            <Style TargetType="ListBoxItem" BasedOn="{StaticResource ResourceKey={x:Type ListBoxItem}}">                                <Setter Property="Rectangle.StrokeThickness" Value="1"/>                            </Style>                        </ListBox.Resources>                        <ListBox.ItemTemplate>                            <DataTemplate>                                <Grid Height="18" Background="#F5F7FA">                                    <Grid.ColumnDefinitions>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                        <ColumnDefinition Width="AUTO"></ColumnDefinition>                                    </Grid.ColumnDefinitions>                                    <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Width="110" >                                        <controls:Slot ViewType="Bottom"  WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}"                                                        SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8,1,8,1"                                                        SlotMouseButtonDown="Slot_SlotMouseButtonDown" WaferTransferStarted="Slot_WaferTransferStarted" FontFamily="Arial" FontSize="2">                                        </controls:Slot>                                    </Border>                                    <Border Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Width="200" >                                        <Border.Style>                                            <Style>                                                <Style.Triggers>                                                    <DataTrigger Binding="{Binding WaferStatus}" Value="0">                                                        <Setter Property="Border.Background" Value="AliceBlue"/>                                                    </DataTrigger>                                                    <DataTrigger Binding="{Binding WaferStatus}" Value="1">                                                        <Setter Property="Border.Background" Value="AliceBlue"/>                                                    </DataTrigger>                                                </Style.Triggers>                                            </Style>                                        </Border.Style>                                        <TextBlock Name="txtSeqName"  Text="{Binding SequenceName}" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>                                    </Border>                                    <Border  Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1"  Width="110" Padding="5,1" >                                        <Button Width="60" Height="14" Command="{Binding Path=DataContext.SetSequenceCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListBox}}" CommandParameter="{Binding}" IsEnabled="{Binding ButtonIsEnableLP1}">                                            <Button.Style>                                                <Style TargetType="{x:Type Button}" BasedOn="{StaticResource ResourceKey={x:Type Button}}">                                                    <Setter Property="Button.Content" Value="Remove"/>                                                    <Setter Property="FontSize" Value="10" />                                                    <Style.Triggers>                                                        <DataTrigger Binding="{Binding ElementName=txtSeqName, Path=Text}" Value="{x:Static sys:String.Empty}">                                                            <Setter Property="Button.Content" Value="Set"/>                                                        </DataTrigger>                                                        <DataTrigger Binding="{Binding WaferStatus}" Value="0">                                                            <Setter Property="Button.IsEnabled" Value="False"/>                                                        </DataTrigger>                                                    </Style.Triggers>                                                </Style>                                            </Button.Style>                                        </Button>                                    </Border>                                </Grid>                            </DataTemplate>                        </ListBox.ItemTemplate>                    </ListBox>                </Grid>            </Grid>        </Canvas>        <TextBox IsReadOnly="True" BorderThickness="0"  Text="LP1" FontSize="20" Width="40"  Height="28" Background="Transparent" HorizontalContentAlignment="Center" HorizontalAlignment="Left" Canvas.Left="50" Canvas.Top="130" VerticalAlignment="Top"/>        <TextBox IsReadOnly="True" BorderThickness="0"  Text="LP2" FontSize="20" Width="40"  Height="28" Background="Transparent" HorizontalContentAlignment="Center" Canvas.Left="50" Canvas.Top="266" HorizontalAlignment="Center" VerticalAlignment="Top"/>        <TextBox IsReadOnly="True" BorderThickness="0"  Text="LP3" FontSize="20" Width="40"  Height="28" Background="Transparent" HorizontalContentAlignment="Center" Canvas.Left="50" Canvas.Top="398" HorizontalAlignment="Center" VerticalAlignment="Top"/>        <TextBlock Canvas.Top="150" Canvas.Left="50" Text="{Binding RtDataValues[LP1.WaferSize], StringFormat=({0})}" Visibility="{Binding RtDataValues[LP1.CassettePlaced], Converter={StaticResource BoolToVisibility2}}"HorizontalAlignment="Center" Margin="0,5,0,0" FontSize="16">        </TextBlock>        <TextBlock Canvas.Top="300" Canvas.Left="50" Text="{Binding RtDataValues[LP2.WaferSize], StringFormat=({0})}" Visibility="{Binding RtDataValues[LP2.CassettePlaced], Converter={StaticResource BoolToVisibility2}}"HorizontalAlignment="Center" Margin="0,5,0,0" FontSize="16">        </TextBlock>        <TextBlock Canvas.Top="420" Canvas.Left="50" Text="{Binding RtDataValues[LP3.WaferSize], StringFormat=({0})}" Visibility="{Binding RtDataValues[LP3.CassettePlaced], Converter={StaticResource BoolToVisibility2}}"           HorizontalAlignment="Center" Margin="0,5,0,0" FontSize="16">        </TextBlock>    </Canvas></UserControl>
 |