| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 | <UserControl x:Class="PunkHPX8_MainPages.Views.EfemView"             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"             xmlns:customControls="clr-namespace:PunkHPX8_Themes.CustomControls;assembly=PunkHPX8_Themes"             xmlns:userControls="clr-namespace:PunkHPX8_Themes.UserControls;assembly=PunkHPX8_Themes"             xmlns:prism="http://prismlibrary.com/"             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"             xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters;assembly=PunkHPX8_Themes"             prism:ViewModelLocator.AutoWireViewModel="True"             xmlns:unity="clr-namespace:PunkHPX8_MainPages.Unity"             mc:Ignorable="d"              d:DesignHeight="850" d:DesignWidth="1920">    <UserControl.Resources>        <converters:BoolToVisibility2 x:Key="BoolToVisibility2"/>        <converters:BoolToVisibility x:Key="BoolToVisibility"/>        <converters:BoolToColor x:Key="boolToColor"></converters:BoolToColor>    </UserControl.Resources>    <Canvas>        <Border BorderThickness="0,0,0,1" BorderBrush="Black" Canvas.Top="20" Canvas.Left="540">            <StackPanel Orientation="Horizontal" Margin="0,0,0,5">                <!--<RadioButton Content="Connect"    FontSize="15"   Width="120" Height="28" Margin="20 5 5 0" Style="{StaticResource Button_RadioButton}" IsChecked="{Binding TMIsOFFline,Converter={StaticResource BoolToBool},Mode=TwoWay}" GroupName="IsConnect"/>                <RadioButton Content="DisConnect" FontSize="15"   Width="120" Height="28" Margin="5 5 0 0" Style="{StaticResource Button_RadioButton}" IsChecked="{Binding TMIsOFFline,Mode=TwoWay}" GroupName="IsConnect"/>-->                <customControls:PathButton IsEnabled="{Binding IsHomeAllEnable}" Content="Home All" FontSize="15"   Width="120" Height="28" Margin="20 5 5 0" Command="{Binding HomeAllCommand}"/>                <customControls:PathButton Content="Clear Error" FontSize="15"   Width="120" Height="28" Margin="5 5 5 0" Command="{Binding ClearErrorCommand}"/>                <customControls:PathButton Content="Abort" FontSize="15"   Width="120" Height="28" Margin="5 5 5 0" Command="{Binding AbortCommand}"/>                <customControls:PathButton Content="CloseBuzzer" FontSize="15"   Width="120" Height="28" Margin="5 5 5 0" Command="{Binding CloseBuzzerCommand}"/>            </StackPanel>        </Border>        <userControls:FOUPFrontView UnitData="{Binding LP1ModuleInfo}"                                    IsCassettePlaced="{Binding RtDataValues[LP1.CassettePlaced]}"                                    Canvas.Top="40" Canvas.Left="1650"/>        <TextBlock Text="LP1" Canvas.Top="15" Canvas.Left="1700" FontSize="12"                   Visibility="{Binding RtDataValues[LP1.CassettePlaced],Converter={StaticResource BoolToVisibility2}}"></TextBlock>        <userControls:FOUPFrontView UnitData="{Binding LP2ModuleInfo}"                                    IsCassettePlaced="{Binding RtDataValues[LP2.CassettePlaced]}"                                    Canvas.Top="40" Canvas.Left="1800"/>        <TextBlock Text="LP2" Canvas.Top="15" Canvas.Left="1850" FontSize="12"                   Visibility="{Binding RtDataValues[LP2.CassettePlaced],Converter={StaticResource BoolToVisibility2}}"></TextBlock>        <StackPanel Canvas.Top="500" Canvas.Left="1800">            <userControls:FOUPFrontView UnitData="{Binding Dummy2ModuleInfo}"                                        IsCassettePlaced="{Binding RtDataValues[Dummy2.CassettePlaced]}"                                        ShowTitle="False" IsEnabled="{Binding RtDataValues[System.IsAutoMode],Converter={StaticResource BoolToBool}}"/>            <TextBlock Text="Dummy2" HorizontalAlignment="Center" Margin="0,5,0,20" FontSize="12"                       Visibility="{Binding RtDataValues[Dummy2.CassettePlaced],Converter={StaticResource BoolToVisibility2}}">            </TextBlock>            <TextBlock Text="{Binding RtDataValues[Dummy2.WaferSize], StringFormat=({0})}" HorizontalAlignment="Center" Margin="0,-10,0,0" FontSize="12"           Visibility="{Binding RtDataValues[Dummy2.CassettePlaced],Converter={StaticResource BoolToVisibility2}}"/>        </StackPanel>        <StackPanel Canvas.Top="500" Canvas.Left="1650">            <userControls:FOUPFrontView UnitData="{Binding Dummy1ModuleInfo}"                                        IsCassettePlaced="{Binding RtDataValues[Dummy1.CassettePlaced]}"                                        ShowTitle="False" IsEnabled="{Binding RtDataValues[System.IsAutoMode],Converter={StaticResource BoolToBool}}"/>            <TextBlock Text="Dummy1" HorizontalAlignment="Center" Margin="0,5,0,0" FontSize="12"                       Visibility="{Binding RtDataValues[Dummy1.CassettePlaced],Converter={StaticResource BoolToVisibility2}}">            </TextBlock>            <TextBlock Text="{Binding RtDataValues[Dummy1.WaferSize], StringFormat=({0})}" HorizontalAlignment="Center" Margin="0,10,0,0" FontSize="12"                       Visibility="{Binding RtDataValues[Dummy1.CassettePlaced],Converter={StaticResource BoolToVisibility2}}"/>        </StackPanel>        <userControls:SRDFrontView UnitData1="{Binding Srd2ModuleInfo}" UnitData2="{Binding Srd1ModuleInfo}" Title="SRD"  Canvas.Top="67" Canvas.Left="1040" HorizontalAlignment="Center" VerticalAlignment="Top"/>        <userControls:RobotFrontView UnitData="{Binding EFEMModuleInfo}" Canvas.Left="1222" Canvas.Top="79" HorizontalAlignment="Center" VerticalAlignment="Top"/>        <Canvas Canvas.Top="-150">            <TextBlock Canvas.Top="500" Canvas.Left="90" 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="650" Canvas.Left="90" 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>            <userControls:CellChamber x:Name="efem1" Width="924" Height="733" Canvas.Left="58" Canvas.Top="150"                                 LP1Presented="{Binding RtDataValues[LP1.CassettePlaced]}"                                 LP2Presented="{Binding RtDataValues[LP2.CassettePlaced]}"                                 LP1Loaded="{Binding RtDataValues[LP1.IsLoaded]}"                                 LP2Loaded="{Binding RtDataValues[LP2.IsLoaded]}"                                 RobotATAction="{Binding Robot1TAction}"                                 RobotAXAction="{Binding Robot1XAction}"                                RobotBFAction="{Binding Robot2FAction}"                                RobotAWaferInfo="{Binding BladeAWafer}"                                 RobotBWaferInfo="{Binding BladeBWafer}"                                 CurrentRobotPosition="{Binding CurrentRobotPosition}"                                Aligner1Wafer="{Binding Aligner1Wafer}"                                 VPW1Wafer="{Binding VPW1Wafer}"                                VPW2Wafer="{Binding VPW2Wafer}"                                PlatingCell1Wafer="{Binding PlatingCell1Wafer}"                                PlatingCell2Wafer="{Binding PlatingCell2Wafer}"                                PlatingCell3Wafer="{Binding PlatingCell3Wafer}"                                PlatingCell4Wafer="{Binding PlatingCell4Wafer}"                                AlignActionValue="{Binding AlignValue, UpdateSourceTrigger=PropertyChanged}"                                Srd1Wafer="{Binding Srd1Wafer}"                                Srd2Wafer="{Binding Srd2Wafer}" HorizontalAlignment="Center" VerticalAlignment="Top"/>        </Canvas>        <GroupBox Header="" Background="{DynamicResource Table_BG_Content}" Width="500" Height="70" Canvas.Left="1020" Canvas.Top="454" HorizontalAlignment="Center" VerticalAlignment="Top">            <Grid>                <TextBlock Margin="20,0,0,0" Text="Vacuum" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14" />                <TextBlock Margin="100,0,0,0" Text="{Binding VacuumValue}" HorizontalAlignment="Left" FontSize="14" VerticalAlignment="Center"/>            </Grid>        </GroupBox>        <GroupBox Header="Door" Background="{DynamicResource Table_BG_Content}" Width="500" Height="120" Canvas.Left="1020" Canvas.Top="525" HorizontalAlignment="Center" VerticalAlignment="Top">            <Grid>                <Ellipse Width="16" Height="16"  Fill="{Binding DoorUnlock, Converter={StaticResource boolToColor}}"   Stroke="Silver" Margin="40,-30,432,14"/>                <customControls:PathButton Content="Open" Height="33"  Command="{Binding DoorUnlockCommand}" Margin="76,10,346,55"/>                <customControls:PathButton Content="Close" Height="33" Margin="160,10,254,55" Command="{Binding DoorLockCommand}"/>                <userControls:LockControl HorizontalAlignment="Left" VerticalAlignment="Top" Margin="442,11,0,0" IsLocked="{Binding IsDoorLocked}"/>                <customControls:PathButton Content="Pause" Height="33"  Command="{Binding PauseCommand}" Margin="252,10,153,55"/>                <customControls:PathButton Content="Resume" Height="33" Margin="347,10,64,55" Command="{Binding ResumeCommand}"/>                <customControls:PathButton Content="SafeOpen" Height="33"  Command="{Binding SafeOpenCommand}" Margin="76,60,256,5"/>                <customControls:PathButton Content="SafeClose" Height="33" Margin="255,60,67,5" Command="{Binding SafeCloseCommand}"/>            </Grid>        </GroupBox>        <Grid Canvas.Top="253" Canvas.Left="1020" Width="560" HorizontalAlignment="Center" VerticalAlignment="Top">            <Grid.RowDefinitions>                <RowDefinition Height="30"/>                <RowDefinition Height="36"/>                <RowDefinition Height="Auto"/>            </Grid.RowDefinitions>            <Border  BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_FirstTitle}" Padding="5,1">                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">                    <Path Data="M0,0 L5,0 5,5 z" Fill="White" 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="EFEM Robot Operation" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_White}" HorizontalAlignment="Left" VerticalAlignment="Center"/>                </StackPanel>            </Border>            <Border Grid.Row="1"  BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,0" Background="{DynamicResource Table_BG_Content}" >                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">                    <customControls:PathButton Content="Home" Height="33" Width="120" Margin="20,0,20,0" Command="{Binding RobotHomeCommand}"/>                    <customControls:PathButton Content="Power On" Height="33" Width="120" Margin="20,0,20,0" Command="{Binding RobotPowerOnCommand}"/>                    <customControls:PathButton Content="Power Off" Height="33" Width="120" Margin="20,0,20,0" Command="{Binding RobotPowerOffCommand}"/>                </StackPanel>            </Border>            <Border Grid.Row="2"  BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,0" Background="{DynamicResource Table_BG_Content}" Margin="0,0,0,64" >                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">                    <customControls:PathButton Content="Map Dummy" Height="33" Width="120" Margin="20,0,20,0" Command="{Binding BFMapCommand}"/>                    <customControls:PathButton Content="Speed" Height="33" Width="120" Margin="20,0,0,0" Command="{Binding SetRobotSpeedCommand}"/>                    <TextBox Text="{Binding RobotSpeedValue, Mode=TwoWay}" Width="60" Height="33"  VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="5,0,20,0" FontSize="20"/>                    <CheckBox Grid.Column="0"  VerticalAlignment="Center" HorizontalAlignment="Center" Content="Vacuum On"  FontSize="13" FontWeight="Bold"                        IsChecked="{Binding IsRobotVacuumOn, Mode=TwoWay}" Command="{Binding RobotVacuumCommand}"/>                </StackPanel>            </Border>            <!--<Border  Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}"   >-->            <Grid Height="100" unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="Black" Grid.Row="2" Background="{DynamicResource Table_BG_Content}" Margin="0,37,0,-37">                <Grid.RowDefinitions>                    <RowDefinition Height="25"/>                    <RowDefinition/>                    <RowDefinition/>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="150"/>                    <ColumnDefinition/>                    <ColumnDefinition/>                    <ColumnDefinition/>                    <ColumnDefinition Width="100"/>                </Grid.ColumnDefinitions>                <TextBlock Text="Module"  Grid.Column="0"  HorizontalAlignment="Center" VerticalAlignment="Center"   FontSize="14" />                <TextBlock Text="Slot" Grid.Column="1"      HorizontalAlignment="Center" VerticalAlignment="Center"   FontSize="14"/>                <TextBlock Text="Blade" Grid.Column="2"       HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"/>                <TextBlock Text="Operation" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center"   FontSize="14"/>                <TextBlock Text="Flip" Grid.Column="3"  HorizontalAlignment="Center" VerticalAlignment="Center"   FontSize="14"/>                <ComboBox Grid.Row="1"       Margin="5" SelectedItem="{Binding PickSelectedModule}" ItemsSource="{Binding EFEMModules}">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="SelectionChanged">                            <i:InvokeCommandAction Command="{Binding ModuleChangeCommand}" CommandParameter="Pick"/>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </ComboBox>                <ComboBox Grid.Row="1" Grid.Column="1"   Margin="5" ItemsSource="{Binding PickSoltItemsSource}" SelectedIndex="{Binding PickSoltSelectedIndex}"/>                <ComboBox Grid.Row="1" Grid.Column="2"   Margin="5"  SelectedItem="{Binding PickSelectedBlade}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>                <ComboBox Grid.Row="1" Grid.Column="3"   Margin="5"  SelectedItem="{Binding PickSoltSelectedFlip}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>                <Button   Grid.Row="1" Grid.Column="4"   Content="Pick" Command="{Binding PickCommand}"/>                <ComboBox Grid.Row="2"   Margin="5" SelectedItem="{Binding PlaceSelectedModule}" ItemsSource="{Binding EFEMModules}">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="SelectionChanged">                            <i:InvokeCommandAction Command="{Binding ModuleChangeCommand}" CommandParameter="Place" />                        </i:EventTrigger>                    </i:Interaction.Triggers>                </ComboBox>                <ComboBox Grid.Row="2" Grid.Column="1" Margin="5" ItemsSource="{Binding PlaceSoltItemsSource}" SelectedIndex="{Binding PlaceSoltSelectedIndex}"/>                <ComboBox Grid.Row="2" Grid.Column="2" Margin="5" SelectedItem="{Binding PlaceSelectedBlade}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>                <ComboBox Grid.Row="2" Grid.Column="3" Margin="5" SelectedItem="{Binding PlaceSoltSelectedFlip}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>                <Button   Grid.Row="2" Grid.Column="4"  Content="Place"  Command="{Binding PlaceCommand}"/>                <!--<ComboBox Grid.Row="3"                 Margin="5" SelectedItem="{Binding ExtendSelectedModule}" ItemsSource="{Binding EFEMModules}">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="SelectionChanged">                            <i:InvokeCommandAction Command="{Binding ModuleChangeCommand}" CommandParameter="Extend" />                        </i:EventTrigger>                    </i:Interaction.Triggers>                </ComboBox>                <ComboBox Grid.Row="3" Grid.Column="1" Margin="5" ItemsSource="{Binding ExtendSoltItemsSource}" SelectedIndex="{Binding ExtendSoltSelectedIndex}"/>                <ComboBox Grid.Row="3" Grid.Column="2" Margin="5" SelectedItem="{Binding ExtendSelectedBlade}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>                <Button   Grid.Row="3" Grid.Column="3"  Content="Extend" Command="{Binding ExtendCommand}"/>                <ComboBox Grid.Row="4"                 Margin="5" SelectedItem="{Binding RetractSelectedModule}" ItemsSource="{Binding EFEMModules}">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="SelectionChanged">                            <i:InvokeCommandAction Command="{Binding ModuleChangeCommand}" CommandParameter="Retract" />                        </i:EventTrigger>                    </i:Interaction.Triggers>                </ComboBox>                <ComboBox Grid.Row="4" Grid.Column="1" Margin="5" ItemsSource="{Binding RetractSoltItemsSource}" SelectedIndex="{Binding RetractSoltSelectedIndex}"/>                <ComboBox Grid.Row="4" Grid.Column="2" Margin="5" SelectedItem="{Binding RetractSelectedBlade}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>                <Button   Grid.Row="4" Grid.Column="3"  Content="Retract" Command="{Binding RetractCommand}"/>-->                <!--<ComboBox   Grid.Row="5" Grid.Column="0"  Margin="5"  SelectedItem="{Binding WaferRobotTAction}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>                <ComboBox   Grid.Row="5" Grid.Column="2"  Margin="5"   SelectedItem="{Binding GoToSelectedBlade}" unity:ItemsControlHelper.EnumValuesToItemsSource="True"/>-->                <!--<Button     Grid.Row="5" Grid.Column="3"  Margin="5" Height="25"  Content="Goto" IsEnabled="{Binding Path=IsManualMode}" Command="{Binding GotoCommand}"/>-->            </Grid>        </Grid>        <StackPanel Canvas.Left="1040"  Canvas.Top="162" Width="400" HorizontalAlignment="Center" VerticalAlignment="Top">            <Border  BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_FirstTitle}" Padding="5,1" Height="30">                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">                    <Path Data="M0,0 L5,0 5,5 z" Fill="White" 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="Aligner1 Operation" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_White}" HorizontalAlignment="Left" VerticalAlignment="Center"/>                </StackPanel>            </Border>            <Border   BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="#D0D8E8" Height="40">                <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">                    <customControls:PathButton Content="Home" Width="100"  Height="33" Command="{Binding Align1HomeCommand}" Margin="0,0,5,0"/>                    <customControls:PathButton Content="Align" Width="100" Height="33" Command="{Binding Align1AlignCommand}" Margin="0,0,2,0"/>                    <TextBox Text="{Binding AlignValue, UpdateSourceTrigger=PropertyChanged}" Width="60" Height="33" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="2,0,12,0" FontSize="20"/>                    <CheckBox Grid.Column="0"  VerticalAlignment="Center" HorizontalAlignment="Center" Content="Vacuum On"  FontSize="10" FontWeight="Bold"                     IsChecked="{Binding IsAlignerVacuumOn, Mode=TwoWay}" Command="{Binding AlignerVacuumCommand}"/>                </StackPanel>            </Border>        </StackPanel>        <StackPanel Orientation="Horizontal" Canvas.Bottom="150" Canvas.Left="100">            <Grid  Width="470" Height="120" Visibility="{Binding IsLP1Installed, Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsLP1Unable,Converter={StaticResource BoolToBool}}">                <Grid.RowDefinitions>                    <RowDefinition Height="24"/>                    <RowDefinition Height="30"/>                    <RowDefinition Height="30"/>                    <RowDefinition Height="30"/>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="100"/>                    <ColumnDefinition  Width="60"/>                    <ColumnDefinition  Width="*"/>                </Grid.ColumnDefinitions>                <Label Content="LP1"  Background="{DynamicResource Table_BG_Title}" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Grid.Row="0" Grid.ColumnSpan="3" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1,0,1">                    <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{Binding LP1StatusBackground}" Grid.Row="1" Grid.Column="1" Padding="5,1">                    <TextBlock Text="{Binding RtDataValues[LP1.Status]}" TextAlignment="Center" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Padding="5,1">                    <StackPanel   Orientation="Horizontal"  >                        <!--<Button Content="Home" Width="80" Height="25" Margin="10,0" Command="{Binding LPHomeCommand}" CommandParameter="LP1"/>-->                        <Button IsEnabled="{Binding IsLP1AbortEnable}" Content="Abort" Width="80" Height="25" Margin="10,0" Command="{Binding LPAbortCommand}" CommandParameter="LP1"/>                        <Button IsEnabled="{Binding IsLP1ResetEnable}" Content="Reset" Width="80" Height="25" Margin="10,0"  Command="{Binding LPResetCommand}" CommandParameter="LP1"/>                    </StackPanel>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1,0,1">                    <TextBlock Text="Is Present" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">                    <!--<deviceControl:AITSensor Margin="5,0" GreenColor="True" LightOnValue="{Binding IsLP1Present}"></deviceControl:AITSensor>-->                    <Ellipse Width="16" Height="16"  Fill="{Binding RtDataValues[LP1.CassettePlaced],Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="2" Padding="5,1">                    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" IsEnabled="{Binding IsLP1HasNoJob}">                        <!--<Button IsEnabled="{Binding IsLP1LoadEnable}" Content="Load" Width="80" Height="25" Margin="10,0"      Command="{Binding LPLoadCommand}"   CommandParameter="LP1"/>-->                        <!--<Button IsEnabled="{Binding IsLP1UnloadEnable}" Content="Unload" Width="80" Height="25" Margin="10,0 " Command="{Binding LPUnLoadCommand}" CommandParameter="LP1"/>-->                        <Button IsEnabled="{Binding RtDataValues[LP1.IsLoaded]}" Content="Map" Width="80" Height="25" Margin="10,0 " Command="{Binding LPMapCommand}" CommandParameter="LP1"/>                    </StackPanel>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1,0,1">                    <TextBlock Text="Is Door Open" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1,0,1">                    <TextBlock Text="{Binding RtDataValues[LP1.IsDoorOpened]}" TextAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="2" Padding="5,1">                    <StackPanel Orientation="Horizontal">                    </StackPanel>                </Border>            </Grid>            <Grid Margin="1,0,0,0" Width="470" Visibility="{Binding IsLP1Installed, Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsLP2Unable,Converter={StaticResource BoolToBool}}">                <Grid.RowDefinitions>                    <RowDefinition Height="24"/>                    <RowDefinition Height="30"/>                    <RowDefinition Height="30"/>                    <RowDefinition Height="30"/>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="100"/>                    <ColumnDefinition  Width="60"/>                    <ColumnDefinition  Width="*"/>                </Grid.ColumnDefinitions>                <Label Content="LP2"  Background="{DynamicResource Table_BG_Title}" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Grid.Row="0" Grid.ColumnSpan="3" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1,0,1">                    <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{Binding LP1StatusBackground}" Grid.Row="1" Grid.Column="1" Padding="5,1">                    <TextBlock Text="{Binding RtDataValues[LP2.Status]}" TextAlignment="Center" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Padding="5,1">                    <StackPanel   Orientation="Horizontal"  >                        <!--<Button Content="Home" Width="80" Height="25" Margin="10,0" Command="{Binding LPHomeCommand}" CommandParameter="LP2"/>-->                        <Button IsEnabled="{Binding IsLP1AbortEnable}" Content="Abort" Width="80" Height="25" Margin="10,0" Command="{Binding LPAbortCommand}" CommandParameter="LP2"/>                        <Button IsEnabled="{Binding IsLP1ResetEnable}" Content="Reset" Width="80" Height="25" Margin="10,0"  Command="{Binding LPResetCommand}" CommandParameter="LP2"/>                    </StackPanel>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1,0,1">                    <TextBlock Text="Is Present" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">                    <!--<deviceControl:AITSensor Margin="5,0" GreenColor="True" LightOnValue="{Binding IsLP1Present}"></deviceControl:AITSensor>-->                    <Ellipse Width="16" Height="16"  Fill="{Binding RtDataValues[LP2.CassettePlaced],Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="2" Padding="5,1">                    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" IsEnabled="{Binding IsLP2HasNoJob}">                        <!--<Button IsEnabled="{Binding IsLP1LoadEnable}" Content="Load" Width="80" Height="25" Margin="10,0"      Command="{Binding LPLoadCommand}"   CommandParameter="LP2"/>                        <Button IsEnabled="{Binding IsLP1UnloadEnable}" Content="Unload" Width="80" Height="25" Margin="10,0 " Command="{Binding LPUnLoadCommand}" CommandParameter="LP2"/>-->                        <Button IsEnabled="{Binding RtDataValues[LP2.IsLoaded]}" Content="Map" Width="80" Height="25" Margin="10,0 " Command="{Binding LPMapCommand}" CommandParameter="LP2"/>                    </StackPanel>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1,0,1">                    <TextBlock Text="Is Door Open" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1,0,1">                    <TextBlock Text="{Binding RtDataValues[LP2.IsDoorOpened]}" TextAlignment="Center"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="2" Padding="5,1">                    <StackPanel Orientation="Horizontal">                        <!--<TextBox IsEnabled="{Binding RtDataValues[LP2.CassettePlaced]}" Margin="10,0" Text="{Binding SetLP2CycleValue, Mode=TwoWay}" Width="80" Height="25" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"  FontSize="15"/>                        <Button IsEnabled="{Binding RtDataValues[LP2.CassettePlaced]}" Content="Cycle Load/Unload " Width="150" Height="25" Margin="10,0" Command="{Binding LP2CycleCommand}" CommandParameter="LP2"/>-->                    </StackPanel>                </Border>            </Grid>        </StackPanel>        <!--<Canvas Visibility="Visible">            <Button Content="平移" Canvas.Left="1600" Canvas.Top="60" Width="100" Height="30" Click="Button_Click_3"/>            <ComboBox Canvas.Left="1700" Canvas.Top="60" Width="100" Height="30" x:Name="cb2">                <ComboBoxItem>Right</ComboBoxItem>                <ComboBoxItem>Left</ComboBoxItem>                <ComboBoxItem>Origin</ComboBoxItem>            </ComboBox>            <Button Content="旋转" Canvas.Left="1600" Canvas.Top="100" Width="100" Height="30" Click="Button_Click"/>            <ComboBox Canvas.Left="1700" Canvas.Top="100" Width="100" Height="30" x:Name="cb1">                <ComboBoxItem>LLA</ComboBoxItem>                <ComboBoxItem>LLB</ComboBoxItem>                <ComboBoxItem>Aligner1</ComboBoxItem>                <ComboBoxItem>LP1</ComboBoxItem>                <ComboBoxItem>LP2</ComboBoxItem>                <ComboBoxItem>LP3</ComboBoxItem>                <ComboBoxItem>RightLocation</ComboBoxItem>                <ComboBoxItem>LeftLocation</ComboBoxItem>            </ComboBox>            <Button Content="伸" Canvas.Left="1600" Canvas.Top="140" Width="100" Height="30" Click="Button_Click_1"/>            <Button Content="缩" Canvas.Left="1600" Canvas.Top="180" Width="100" Height="30" Click="Button_Click_2"/>            <TextBox Canvas.Left="1600" Canvas.Top="220" Text="{Binding RobotMoveInfo.BladeTarget}"/>            <TextBox Canvas.Left="1700" Canvas.Top="220" Text="{Binding RobotMoveInfo.ArmTarget}"/>            <TextBox Canvas.Left="1800" Canvas.Top="220" Text="{Binding RobotMoveInfo.Action}"/>        </Canvas>-->    </Canvas></UserControl>
 |