| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536 | <UserControl x:Class="VirgoUI.Client.Models.Operate.OverView"             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:i="http://schemas.microsoft.com/expression/2010/interactivity"             xmlns:cal="http://www.caliburn.org"             xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"             xmlns:local="clr-namespace:VirgoUI.Client.Models.Controls"             xmlns:parts="clr-namespace:VirgoUI.Controls.Parts"             xmlns:wa="clr-namespace:VirgoUI.Client.Models.Operate"             xmlns:parts1="clr-namespace:VirgoUI.Client.Controls.Parts"             xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"             xmlns:waferAssociation="clr-namespace:VirgoUI.Client.Models.Operate.WaferAssociation"             xmlns:converters="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"             mc:Ignorable="d" IsEnabled="{Binding PageEnabled}"             d:DesignHeight="700" d:DesignWidth="1600">    <UserControl.Resources>        <converters:enum2BoolConverter x:Key="enum2BoolConverter"/>        <converters:bool2VisibilityConverter x:Key="bool2VisibilityConvert"/>        <Style TargetType="{x:Type Button}" x:Key="BtnControl" BasedOn="{StaticResource ResourceKey={x:Type Button}}">            <Setter Property="Button.IsEnabled" Value="False" />            <Style.Triggers>                <DataTrigger Binding="{Binding ButtonControl}" Value="False">                    <Setter Property="Button.IsEnabled" Value="True"/>                </DataTrigger>            </Style.Triggers>        </Style>        <Style TargetType="{x:Type Button}" x:Key="BtnControl2" BasedOn="{StaticResource ResourceKey={x:Type Button}}">            <Setter Property="Button.IsEnabled" Value="False" />            <Style.Triggers>                <MultiDataTrigger>                    <MultiDataTrigger.Conditions>                        <Condition Binding="{Binding Permission}" Value="1"></Condition>                        <Condition Binding="{Binding enable}" Value="True"></Condition>                        <Condition Binding="{Binding CurrentPM.Online}" Value="0"></Condition>                    </MultiDataTrigger.Conditions>                    <Setter Property="Button.IsEnabled" Value="True"/>                </MultiDataTrigger>            </Style.Triggers>        </Style>    </UserControl.Resources>    <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Margin="0">        <Grid>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="*"/>                <ColumnDefinition Width="Auto" MinWidth="410"/>                <ColumnDefinition Width="Auto"/>            </Grid.ColumnDefinitions>            <Grid Grid.Column="0">                <Viewbox Width="940" >                    <Canvas VerticalAlignment="Top" HorizontalAlignment="Center" Width="1050" Height="700" Margin="0,0">                        <Canvas Height="700" Width="1013" Canvas.Left="37" Canvas.Top="10">                            <Viewbox Height="528" Width="670" Canvas.Left="135" Canvas.Top="81">                                <parts1:Efem x:Name="mf"  Canvas.Left="70" Canvas.Top="15" Height="608" Width="796"/>                            </Viewbox>                            <Label Content="{Binding EfemRobotMoveInfo}" Canvas.Left="460" Canvas.Top="296"  Foreground="LightPink" FontSize="30">                            </Label>                            <local:EFEMFrontView UnitData="{Binding EFEM}" Canvas.Top="242" Canvas.Left="48"  />                            <Grid x:Name="PMA_Info" Canvas.Top="3" Canvas.Left="-4">                                <Grid.ColumnDefinitions>                                    <ColumnDefinition Width="120"/>                                    <ColumnDefinition Width="150"/>                                </Grid.ColumnDefinitions>                                <Grid.RowDefinitions>                                    <RowDefinition Height="Auto"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                </Grid.RowDefinitions>                                <TextBlock Grid.ColumnSpan="2" Text="PMA" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,3"/>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">                                    <TextBlock Text="State" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMAServiceStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">                                    <TextBlock Text="Recipe Name" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMARecipeName}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">                                    <TextBlock Text="Step No." TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMAStepNo}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">                                    <TextBlock Text="Step Name" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMAStepName}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Padding="5,1">                                    <TextBlock Text="Elapsed Time(s)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMARemainTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Padding="5,1">                                    <TextBlock Text="Pressure (mTorr)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMAChamberPressure, StringFormat={}{0:F0}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Padding="5,1">                                    <TextBlock Text="Heater (℃)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" Visibility="{Binding Path=IsPMAHeaterVisibility, Converter={StaticResource bool2VisibilityConvert}}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMATemperature, StringFormat={}{0:F1}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" Visibility="{Binding Path=IsPMAChillerVisibility, Converter={StaticResource bool2VisibilityConvert}}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMAChillerTemperature, StringFormat={}{0:F1}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                            </Grid>                            <Grid x:Name="PMB_Info" Canvas.Top="3" Canvas.Left="693">                                <Grid.ColumnDefinitions>                                    <ColumnDefinition Width="120"/>                                    <ColumnDefinition Width="150"/>                                </Grid.ColumnDefinitions>                                <Grid.RowDefinitions>                                    <RowDefinition Height="Auto"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                    <RowDefinition Height="24"/>                                </Grid.RowDefinitions>                                <TextBlock Grid.ColumnSpan="2" Text="PMB" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,3"/>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">                                    <TextBlock Text="State" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBServiceStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">                                    <TextBlock Text="Recipe Name" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBRecipeName}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">                                    <TextBlock Text="Step No." TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBStepNo}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">                                    <TextBlock Text="Step Name" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBStepName}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Padding="5,1">                                    <TextBlock Text="Elapsed Time(s)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBRemainTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Padding="5,1">                                    <TextBlock Text="Pressure (mTorr)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBChamberPressure, StringFormat={}{0:F0}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Padding="5,1">                                    <TextBlock Text="Heater (℃)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" Visibility="{Binding Path=IsPMBHeaterVisibility, Converter={StaticResource bool2VisibilityConvert}}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBTemperature, StringFormat={}{0:F1}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}" Visibility="{Binding Path=IsPMBChillerVisibility, Converter={StaticResource bool2VisibilityConvert}}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="1" Padding="5,1">                                    <TextBlock Text="{Binding PMBChillerTemperature, StringFormat={}{0:F1}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                            </Grid>                            <local:FOUPFrontView UnitData="{Binding Buffer}" Visibility="{Binding Path=IsBufferIntalled, Converter={StaticResource bool2VisibilityConvert}}" VerticalAlignment="Top" Canvas.Left="777" Canvas.Top="247"></local:FOUPFrontView>                            <StackPanel Canvas.Left="361" Canvas.Top="571" Visibility="{Binding Foup1Visibility}">                                <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">                            <TextBlock Text="LP1 Wafer Size" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Border>                        <Border BorderBrush="{DynamicResource Table_BD}"  BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}"  Padding="5,1">                            <TextBlock Text="{Binding WaferSizeLP1}" TextWrapping="Wrap" HorizontalAlignment="Center" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Border>-->                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}"  Padding="5,1">                                    <TextBlock Text="LP1 Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}"  BorderThickness="1,0,1,1" Background="{Binding LP1StatusColor[0]}"  Padding="5,1">                                    <TextBlock Text="{Binding LP1ProcStatus}" TextWrapping="Wrap" HorizontalAlignment="Center" Foreground="{Binding LP1StatusColor[1]}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                            </StackPanel>                            <StackPanel Canvas.Left="516" Canvas.Top="571" Visibility="{Binding Foup2Visibility}">                                <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">                            <TextBlock Text="LP2 Wafer Size" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Border>                        <Border BorderBrush="{DynamicResource Table_BD}"  BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}"  Padding="5,1">                            <TextBlock Text="{Binding WaferSizeLP2}"  HorizontalAlignment="Center" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Border>-->                                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}"  Padding="5,1">                                    <TextBlock Text="LP2 Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                                <Border BorderBrush="{DynamicResource Table_BD}"  BorderThickness="1,0,1,1" Background="{Binding LP2StatusColor[0]}"  Padding="5,1">                                    <TextBlock Text="{Binding LP2ProcStatus}" TextWrapping="Wrap" HorizontalAlignment="Center" Foreground="{Binding LP2StatusColor[1]}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                                </Border>                            </StackPanel>                            <TextBlock Text="{Binding PMBState}" Canvas.Left="535" Canvas.Top="105" Visibility="{Binding IsPMBInstalled, Converter={StaticResource bool2VisibilityConvert}}"></TextBlock>                            <TextBlock Text="{Binding PMAState}" Canvas.Left="320" Canvas.Top="105" Visibility="{Binding IsPMAInstalled, Converter={StaticResource bool2VisibilityConvert}}"></TextBlock>                        </Canvas>                    </Canvas>                </Viewbox>            </Grid>            <TabControl Grid.Column="1" Margin="0,5,0,85">                <TabItem Header="{Binding LP1WaferAssociation.ModuleData.ModuleID}" Visibility="{Binding IsLP1Visibility}">                    <Grid>                        <Grid.ColumnDefinitions>                            <ColumnDefinition Width="170"/>                            <ColumnDefinition Width="*"/>                        </Grid.ColumnDefinitions>                        <Grid.RowDefinitions>                            <RowDefinition Height="*"/>                        </Grid.RowDefinitions>                        <waferAssociation:WaferAssociationUnit Grid.Column="1" Grid.Row="0"  WAInfo="{Binding LP1WaferAssociation}" IsEnabled="{Binding EnableJobLP1}"></waferAssociation:WaferAssociationUnit>                        <StackPanel>                            <local:FOUPFrontView UnitData="{Binding FOUPA}" VerticalAlignment="Top"  Margin="0 30 0 0"></local:FOUPFrontView>                            <TextBlock Text="{Binding LP1WaferCountInfo}" FontFamily="Arial" TextAlignment="Center" FontSize="14" TextWrapping="Wrap" FontWeight="Bold" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,10">                            </TextBlock>                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Visibility="{Binding MapVisibility}">                                <Button Content="Map" Width="75" Height="25" IsEnabled="{Binding EnableMapLP1}">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="Click">                                            <cal:ActionMessage MethodName="MapLP">                                                <cal:Parameter Value="{Binding FOUPA.ModuleID}"></cal:Parameter>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </Button>                            </StackPanel>                            <StackPanel Orientation="Horizontal">                                <Button Content="Load" Width="75" Height="25"  IsEnabled="{Binding EnableLoadLP1}" Visibility="{Binding LoadVisibility}">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="Click">                                            <cal:ActionMessage MethodName="LoadLP">                                                <cal:Parameter Value="LP1"></cal:Parameter>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </Button>                                <Button Content="UnLoad" Width="75" Height="25"  IsEnabled="{Binding EnableUnloadLP1}" Visibility="{Binding LoadVisibility}">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="Click">                                            <cal:ActionMessage MethodName="UnloadLP">                                                <cal:Parameter Value="LP1"></cal:Parameter>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </Button>                            </StackPanel>                        </StackPanel>                    </Grid>                </TabItem>                <TabItem Header="{Binding LP2WaferAssociation.ModuleData.ModuleID}" Visibility="{Binding IsLP2Visibility}">                    <Grid>                        <Grid.ColumnDefinitions>                            <ColumnDefinition Width="170"/>                            <ColumnDefinition Width="*"/>                        </Grid.ColumnDefinitions>                        <Grid.RowDefinitions>                            <RowDefinition Height="*"/>                        </Grid.RowDefinitions>                        <waferAssociation:WaferAssociationUnit Grid.Column="1" WAInfo="{Binding LP2WaferAssociation}" IsEnabled="{Binding EnableJobLP2}"></waferAssociation:WaferAssociationUnit>                        <StackPanel>                            <local:FOUPFrontView UnitData="{Binding FOUPB}" VerticalAlignment="Top" Margin="0 30 0 0"></local:FOUPFrontView>                            <TextBlock Text="{Binding LP2WaferCountInfo}" FontFamily="Arial" TextAlignment="Center" FontSize="14" TextWrapping="Wrap" FontWeight="Bold" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,10">                            </TextBlock>                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Visibility="{Binding MapVisibility}">                                <Button Content="Map" Width="75" Height="25" IsEnabled="{Binding EnableMapLP1}">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="Click">                                            <cal:ActionMessage MethodName="MapLP">                                                <cal:Parameter Value="{Binding FOUPB.ModuleID}"></cal:Parameter>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </Button>                            </StackPanel>                            <StackPanel Orientation="Horizontal">                                <Button Content="Load" Width="75" Height="25"  IsEnabled="{Binding EnableLoadLP2}">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="Click">                                            <cal:ActionMessage MethodName="LoadLP">                                                <cal:Parameter Value="LP2"></cal:Parameter>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </Button>                                <Button Content="UnLoad" Width="75" Height="25"  IsEnabled="{Binding EnableUnloadLP2}">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="Click">                                            <cal:ActionMessage MethodName="UnloadLP">                                                <cal:Parameter Value="LP2"></cal:Parameter>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </Button>                            </StackPanel>                        </StackPanel>                    </Grid>                </TabItem>            </TabControl>            <Grid Grid.Column="2" Width="200" Background="White" Margin="10,-1,0,-1">                <Grid.RowDefinitions>                    <RowDefinition Height="30"/>                    <RowDefinition Height="Auto"/>                    <RowDefinition Height="30"/>                    <RowDefinition Height="Auto" />                    <RowDefinition Height="30"/>                    <RowDefinition />                </Grid.RowDefinitions>                <Border Grid.Row="0" BorderBrush="{DynamicResource MainFrame_BD}" BorderThickness="1" Background="{DynamicResource MainFrame_BG_Title}" Padding="5,1">                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">                        <Path Data="M0,0 L5,0 5,5 z" Fill="Black" HorizontalAlignment="Left" Grid.Row="1" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Width="5" Height="5">                            <Path.RenderTransform>                                <TransformGroup>                                    <ScaleTransform/>                                    <SkewTransform/>                                    <RotateTransform Angle="45"/>                                    <TranslateTransform/>                                </TransformGroup>                            </Path.RenderTransform>                        </Path>                        <TextBlock Margin="5,0,0,0" Text="Wafer Status" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center"/>                    </StackPanel>                </Border>                <Border Grid.Row="1" BorderBrush="{DynamicResource MainFrame_BD}" BorderThickness="1,0,1,1" Padding="5,1">                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5">                        <Grid Width="180" Height="20" HorizontalAlignment="Left">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="40"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <Rectangle Fill="Gold" Stroke="Black" StrokeThickness="1"/>                            <TextBlock Text="Idle / Unselected" Grid.Column="1" Margin="10,0,0,0" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Grid>                        <Grid Width="180" Height="20" Margin="0,5,0,0" HorizontalAlignment="Left">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="40"/>                                <ColumnDefinition Width="6*" />                                <ColumnDefinition Width="29*"/>                            </Grid.ColumnDefinitions>                            <Rectangle Fill="Blue" Stroke="Black" StrokeThickness="1"/>                            <TextBlock Text="Idle / Job Selected" Grid.Column="1" Margin="10,2,0,1" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Grid.ColumnSpan="2"/>                        </Grid>                        <Grid Width="180" Height="20" Margin="0,5,0,0" HorizontalAlignment="Left">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="40"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <Rectangle Fill="Cyan" Stroke="Black" StrokeThickness="1"/>                            <TextBlock Text="In Process" Grid.Column="1" Margin="10,0,0,0" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Grid>                        <Grid Width="180" Height="20" Margin="0,5,0,0" HorizontalAlignment="Left">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="40"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <Rectangle Fill="LimeGreen" Stroke="Black" StrokeThickness="1"/>                            <TextBlock Text="Process Complete" Grid.Column="1" Margin="10,0,0,0" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Grid>                        <Grid Width="180" Height="20" Margin="0,5,0,0" HorizontalAlignment="Left">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="40"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <Rectangle Fill="Red" Stroke="Black" StrokeThickness="1"/>                            <TextBlock Text="Error" Grid.Column="1" Margin="10,0,0,0" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                        </Grid>                    </StackPanel>                </Border>                <Border Grid.Row="2" BorderBrush="{DynamicResource MainFrame_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource MainFrame_BG_Title}" Padding="5,1">                </Border>                <Border Grid.Row="3" BorderBrush="{DynamicResource MainFrame_BD}" BorderThickness="1,0,1,1" Padding="5,1">                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,8">                        <Grid>                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="0"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <deviceControl:AITSensor Margin="-30,0,5,0" GreenColor="True" LightOnValue="{Binding IsRtInitialized}"></deviceControl:AITSensor>                            <Button Style="{StaticResource BtnControl}" Grid.Column="1" Content="Initialize"  Width="120" Height="25">                                <i:Interaction.Triggers>                                    <i:EventTrigger EventName="Click">                                        <cal:ActionMessage MethodName="HomeAll">                                        </cal:ActionMessage>                                    </i:EventTrigger>                                </i:Interaction.Triggers>                            </Button>                        </Grid>                        <Grid Margin="0,8,0,0">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="0"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <Button Style="{StaticResource BtnControl}" Grid.Column="1" Content="Abort" Width="120" Height="25">                                <i:Interaction.Triggers>                                    <i:EventTrigger EventName="Click">                                        <cal:ActionMessage MethodName="Abort">                                        </cal:ActionMessage>                                    </i:EventTrigger>                                </i:Interaction.Triggers>                            </Button>                        </Grid>                        <Grid Margin="0,8,0,0">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="0"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <Button Style="{StaticResource BtnControl}" Grid.Column="1" Content="Pause All" Width="120" Height="25" IsEnabled="{Binding IsPauseAllEnable}">                                <i:Interaction.Triggers>                                    <i:EventTrigger EventName="Click">                                        <cal:ActionMessage MethodName="PauseAllJob">                                        </cal:ActionMessage>                                    </i:EventTrigger>                                </i:Interaction.Triggers>                            </Button>                        </Grid>                        <Grid Margin="0,8,0,0">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="0"/>                                <ColumnDefinition />                            </Grid.ColumnDefinitions>                            <Button Style="{StaticResource BtnControl}" Grid.Column="1" Content="Return Wafer" Width="120" Height="25">                                <i:Interaction.Triggers>                                    <i:EventTrigger EventName="Click">                                        <cal:ActionMessage MethodName="ReturnAllWafer">                                        </cal:ActionMessage>                                    </i:EventTrigger>                                </i:Interaction.Triggers>                            </Button>                        </Grid>                    </StackPanel>                </Border>                <Border Grid.Row="4" BorderBrush="{DynamicResource MainFrame_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource MainFrame_BG_Title}" Padding="5,1">                </Border>                <Border Grid.Row="5" BorderBrush="{DynamicResource MainFrame_BD}" BorderThickness="1,0,1,1" Padding="5,1">                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5">                        <Button Style="{StaticResource BtnControl}" IsEnabled="{Binding EnableAuto}" Margin ="5" Content="Auto"  Width="80" Height="25">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Click">                                    <cal:ActionMessage MethodName="Auto">                                    </cal:ActionMessage>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </Button>                        <Button Style="{StaticResource BtnControl}" IsEnabled="{Binding EnableManual}" Margin ="5" Content="Manual" Width="80" Height="25">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="Click">                                    <cal:ActionMessage MethodName="Manual">                                    </cal:ActionMessage>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </Button>                        <Grid x:Name="Cycle_Info" Visibility="{Binding IsCycleInfoVisibility}" Margin="0,10,0,0">                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="95"/>                                <ColumnDefinition Width="70"/>                            </Grid.ColumnDefinitions>                            <Grid.RowDefinitions>                                <RowDefinition Height="25"/>                                <RowDefinition Height="24"/>                                <RowDefinition Height="24"/>                            </Grid.RowDefinitions>                            <TextBlock Grid.ColumnSpan="2" Text="Cycle Information" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,3"/>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">                                <TextBlock Text="Wafer Count" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">                                <TextBlock Text="{Binding CycledWafer}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">                                <TextBlock Text="Cycle Count" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">                                <TextBlock Text="{Binding CycleCountDisplay}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                        </Grid>                        <TextBlock Grid.ColumnSpan="2" Text="ATM Mode ON" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,20,0,0" Visibility="{Binding IsATMInfoVisibility}"/>                    </StackPanel>                </Border>            </Grid>        </Grid>    </ScrollViewer></UserControl>
 |