| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753 | <UserControl x:Class="EfemUI.Controls.NewE84Info"             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:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common;assembly=Aitex.Sorter.UI"             xmlns:controls="clr-namespace:Aitex.Sorter.UI.Controls;assembly=Aitex.Sorter.UI"             xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"             mc:Ignorable="d" x:Name="self"             d:DesignHeight="810" Width="2000">    <UserControl.Resources>        <Style TargetType="{x:Type Button}">            <Setter Property="Template" Value="{StaticResource realism_button}" />        </Style>    </UserControl.Resources>    <Grid x:Name="root">        <Border HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="1" BorderBrush="#84a567"                Height="810" Width="1909" Margin="0,0,-309,0" >            <DockPanel Background="#d6f1ff" Margin="9,0,0,0">                <Grid>                    <Grid.RowDefinitions>                        <RowDefinition Height="400" />                        <RowDefinition Height="80" />                        <RowDefinition Height="310" />                    </Grid.RowDefinitions>                    <Border Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="1" Margin="0,10,0,0"                            BorderBrush="#84a567" Height="380" Width="1610">                        <DockPanel Background="#d6f1ff">                            <Grid>                                <Grid.ColumnDefinitions>                                    <ColumnDefinition Width="665" />                                    <ColumnDefinition Width="450" />                                    <ColumnDefinition Width="*" />                                </Grid.ColumnDefinitions>                                <Border x:Name="LpBorder" Grid.Column="0" HorizontalAlignment="Left"                                        VerticalAlignment="Top" BorderThickness="0" BorderBrush="Gray"                                        Height="400" Width="650" Margin="10,0,0,0">                                    <controls:HeaderPanel Header="Load Port Status" Width="650" >                                        <Grid>                                            <Grid.RowDefinitions>                                                <RowDefinition Height="*" />                                                <RowDefinition Height="7*" />                                            </Grid.RowDefinitions>                                            <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Orientation="Horizontal" VerticalAlignment="Center">                                                <StackPanel.Resources>                                                    <Style TargetType="Label">                                                        <Setter Property="Margin" Value="0,0,0,0" />                                                    </Style>                                                </StackPanel.Resources>                                                <ctrlCommon:LED On="{Binding E84Data.IndicatiorLoad,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="6,0,0,0"/>                                                <Label Grid.Row="0" Grid.Column="1" Content="Load" FontSize="15"/>                                                <ctrlCommon:LED On="{Binding E84Data.IndicatiorUnload,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="3,0,0,0"/>                                                <Label Content="Unload" FontSize="15"/>                                                <ctrlCommon:LED On="{Binding E84Data.IndicatiorAccessManual,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="3,0,0,0"/>                                                <Label Content="Manual" FontSize="15"/>                                                <ctrlCommon:LED On="{Binding E84Data.IndicatiorPresence,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="3,0,0,0"/>                                                <Label Grid.Row="2" Grid.Column="1" Content="Presence" FontSize="15"/>                                                <ctrlCommon:LED On="{Binding E84Data.IndicatiorPlacement,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="3,0,0,0"/>                                                <Label Grid.Row="4" Grid.Column="1" Content="Placement" FontSize="15"/>                                                <ctrlCommon:LED On="{Binding E84Data.IndicatiorAccessAuto,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="3,0,0,0"/>                                                <Label Content="Auto" FontSize="15"/>                                                <ctrlCommon:LED On="{Binding E84Data.IndicatiorStatus1,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="3,0,0,0"/>                                                <Label Content="Reserve" FontSize="15"/>                                                <ctrlCommon:LED IsRed="True" On="{Binding E84Data.IndicatiorAlarm,Converter={StaticResource IndicatorStateToBoolConverter}}" Margin="3,0,0,0"/>                                                <Label Grid.Row="0" Grid.Column="1" Content="Alarm" FontSize="15"/>                                            </StackPanel>                                            <Border Grid.Row="1" >                                                <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent"                                                          ctrlCommon:GridHelper.Column2="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column3="Transparent">                                                    <Grid.ColumnDefinitions>                                                        <ColumnDefinition Width="150*" />                                                        <ColumnDefinition Width="170*"/>                                                        <ColumnDefinition Width="150*" />                                                        <ColumnDefinition Width="170*" />                                                    </Grid.ColumnDefinitions>                                                    <Grid.RowDefinitions>                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="27" />                                                        <RowDefinition Height="90*" />                                                    </Grid.RowDefinitions>                                                    <Label Grid.Row="0" Grid.Column="0" Content="System Status" FontSize="15"                                                           HorizontalContentAlignment="Left"   />                                                    <Label Grid.Row="0" Grid.Column="1" Content="{Binding E84Data.SystemStatus}" FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="1" Grid.Column="0" Content="Mode"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="1" Content="{Binding E84Data.Mode}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="2" Grid.Column="0" Content="Initial Pos.Mov"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="2" Content="{Binding E84Data.InitPosMovement}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="3" Grid.Column="0" Content="Operation Status"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="3" Content="{Binding E84Data.OperationStatus}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="4" Grid.Column="0" Content="Error Code"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="4" Content="{Binding E84Data.ErrorCode}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="5" Grid.Column="0" Content="Container Status"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="5" Content="{Binding E84Data.ContainerStatus}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="6" Grid.Column="0" Content="Clamp Postion"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="6" Content="{Binding E84Data.ClampPosition}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="7" Grid.Column="0" Content="Latch Postion"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="7" Content="{Binding E84Data.LPDoorLatchPosition}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="8" Grid.Column="0" Content="Vacuum Status"                                                           FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="8" Content="{Binding E84Data.VacuumStatus}" Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="0" Grid.Column="2" Content="Door Position" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="0" Content="{Binding E84Data.LPDoorState}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="1"  Grid.Column="2" Content="Wafer Protruision" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="1"  Content="{Binding E84Data.WaferProtrusion}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="2" Grid.Column="2" Content="Elevator Axis" FontSize="15"                                                           HorizontalContentAlignment="Left"  />                                                    <Label Grid.Row="2" Content="{Binding E84Data.ElevatorAxisPosition}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="3" Grid.Column="2" Content="Dock Position" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="3" Content="{Binding E84Data.DockPosition}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="4" Grid.Column="2" Content="Map Position" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="4" Content="{Binding E84Data.MapperPostion}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="5" Grid.Column="2" Content="Map Status" FontSize="15"                                                           HorizontalContentAlignment="Left"   />                                                    <Label Grid.Row="5" Content="{Binding E84Data.MappingStatus}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="6" Grid.Column="2" Content="Model" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="6" Content="{Binding E84Data.Model}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="7" Grid.Column="2" Content="Fosb Mode" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="7" Content="{Binding E84Data.IsFosbModeActual}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <Label Grid.Row="8" Grid.Column="2" Content="State Machine" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <Label Grid.Row="8" Content="{Binding E84Data.SMStatus}" Grid.Column="3" FontSize="15"                                                           HorizontalContentAlignment="Left"/>                                                    <StackPanel Orientation="Vertical" Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="4" VerticalAlignment="Top" HorizontalAlignment="Center" TextBlock.Foreground="White" Height="71" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="LightBlue"  ctrlCommon:GridHelper.Column2="Transparent"  Width="634">                                                        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" Width="635" Height="35" Margin="0,0,0,0" >                                                            <Label Content="Command Option:" FontSize="15" HorizontalContentAlignment="Left" Width="138" Height="30"/>                                                            <ComboBox  x:Name="cboCmdOption"  ItemsSource="{Binding LPCommandList}" FontSize="12" Width="361" Margin="5,3,5,3"/>                                                            <Button Content="Execute Command" FontSize="12"                                                                         Command="{Binding DeviceExecuteMoveCommand}"                                                                             CommandParameter="{Binding Text,ElementName=cboCmdOption}"                                                                        Height="30" Margin="0,0,0,0" Width="127" IsEnabled="True"/>                                                        </StackPanel>                                                        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Width="635" Height="35" Margin="0,0,-1,0" >                                                            <Button Content="Load" FontSize="12" Command="{Binding DeviceOperationCommand}"                                                                     CommandParameter="LoadportLoad"                                                                      Height="30" Margin="0,0,0,0" Width="64"  />                                                            <Button Content="Unload" FontSize="12" Command="{Binding DeviceOperationCommand}"                                                                     CommandParameter="LoadportUnload"                                                                      Height="30" Margin="3,0,0,0" Width="64" />                                                            <Button Content="Home" FontSize="12" Command="{Binding DeviceOperationCommand}"                                                                     CommandParameter="LoadportHome"                                                                     Height="30" Margin="3,0,0,0" Width="64"  />                                                            <Button Content="Reset" FontSize="12" Command="{Binding DeviceOperationCommand}"                                                                     CommandParameter="LoadportReset"                                                                      Height="30" Margin="3,0,0,0" Width="64" />                                                            <Button Content="Stop" FontSize="12" Command="{Binding DeviceOperationCommand}"                                                                     CommandParameter="LoadportStop"  Height="30" Margin="3,0,0,0" Width="64"  />                                                            <Button Content="Force Home" FontSize="12" Command="{Binding DeviceExecuteMoveCommand}"                                                                     CommandParameter="(ABORG)"                                                                      Height="30" Margin="3,0,0,0" Width="80" />                                                            <Button Content="Read Status" FontSize="12" Command="{Binding DeviceExecuteGetCommand}"                                                                     CommandParameter="(STATE)"  Height="30" Margin="3,0,0,0" Width="80"  />                                                            <Button Content="Fosb ON" FontSize="12" Command="{Binding DeviceExecuteSetCommand}"                                                                    CommandParameter="(FSBON)"  Height="30" Margin="3,0,0,0" Width="66"  />                                                            <Button Content="Fosb Off" FontSize="12" Command="{Binding DeviceExecuteSetCommand}"                                                                     CommandParameter="(FSBOFF)"  Height="30" Margin="3,0,0,0" Width="66"  />                                                        </StackPanel>                                                    </StackPanel>                                                </Grid>                                            </Border>                                        </Grid>                                    </controls:HeaderPanel>                                </Border>                                <Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Bottom"                                        BorderThickness="1" BorderBrush="Gray" Height="378" Width="440" Margin="5,0,5,0">                                    <DockPanel Background="{StaticResource Table_BG_Content}">                                        <controls:HeaderPanel Header="E87 Status" Width="440">                                            <Grid Height="338">                                                <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent" Margin="0,0,0,0">                                                    <Grid.ColumnDefinitions>                                                        <ColumnDefinition Width="80*" />                                                        <ColumnDefinition Width="99*" />                                                    </Grid.ColumnDefinitions>                                                    <Grid.RowDefinitions>                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                        <RowDefinition Height="38" />                                                    </Grid.RowDefinitions>                                                    <Label Grid.Row="0" Content="Port Reserved :" FontSize="15"                                                           HorizontalContentAlignment="Left" />                                                    <ctrlCommon:LED Grid.Row="0" Grid.Column="1"                                                                    On="{Binding E84Data.PodReserved}" Margin="5,0,0,0" Height="36" VerticalAlignment="Top" />                                                    <Label Grid.Row="1" Content="Port State :" FontSize="15"                                                           HorizontalContentAlignment="Left"                                                           VerticalAlignment="Center" Height="30" Margin="0,4" />                                                    <Label Content="{Binding E84Data.PortState}" Grid.Row="1"                                                           Grid.Column="1"                                                           FontSize="15" HorizontalContentAlignment="Center"                                                           VerticalAlignment="Center" Margin="5,4,0,4" Height="30" />                                                    <Label Grid.Row="2" Content="Carrier ID :"                                                           HorizontalContentAlignment="Left" FontSize="15"                                                           VerticalAlignment="Center" Height="30" Margin="0,4" />                                                    <Label Content="{Binding E84Data.CarrierID}" Grid.Row="2"                                                           Grid.Column="1" FontSize="15" Height="30"                                                           HorizontalContentAlignment="Center"                                                           VerticalAlignment="Center" Margin="5,4,0,4" />                                                    <Label Grid.Row="3" Content="Slot Map :"                                                           HorizontalContentAlignment="Left" FontSize="15"                                                           VerticalAlignment="Center" Height="30" Margin="0,4" />                                                    <Label Content="{Binding E84Data.SlotMap}" Grid.Row="3"                                                           Grid.Column="1" FontSize="15"                                                           HorizontalContentAlignment="Center"                                                           VerticalAlignment="Center" Height="32" Margin="5,4,0,2" />                                                    <Label Grid.Row="4" Content="Access Mode :"                                                           HorizontalContentAlignment="Left" FontSize="15"                                                           VerticalAlignment="Center" Height="30" Margin="0,4" />                                                    <Label Content="{Binding E84Data.AccessMode}" Grid.Row="4"                                                           Grid.Column="1" FontSize="15" Height="32"                                                           HorizontalContentAlignment="Center"                                                           VerticalAlignment="Center" Margin="5,4,0,2" />                                                    <Label Grid.Row="5" Content="Access Status :"                                                           HorizontalContentAlignment="Left" FontSize="15"                                                           VerticalAlignment="Center" Height="30" Margin="0,4" />                                                    <Label Content="{Binding E84Data.AccessStatus}" Grid.Row="5"                                                           Grid.Column="1" FontSize="15" Height="32"                                                           HorizontalContentAlignment="Center"                                                           VerticalAlignment="Center" Margin="5,4,0,2" />                                                    <Label Grid.Row="6" Grid.Column =" 0" Content="Carrier ID Status :"                                                           HorizontalContentAlignment="Left" FontSize="15"                                                           VerticalAlignment="Center" Grid.ColumnSpan="1" Margin="0,8,0,0" Height="30" />                                                    <Label Content="{Binding E84Data.CarrierIDStatus}" Grid.Row="6"                                                           Grid.Column="1" FontSize="15" Height="34"                                                           HorizontalContentAlignment="Center"                                                           VerticalAlignment="Center" Margin="5,2,0,2" Grid.ColumnSpan="1" />                                                    <Label Grid.Row="7" Content="Slot Map Status :"                                                           HorizontalContentAlignment="Left" FontSize="15"                                                           VerticalAlignment="Center" Grid.Column="0" Margin="0,8,0,0" Height="30" />                                                    <Label Content="{Binding E84Data.SlotMapStatus}" Grid.Row="7"                                                           Grid.Column="1" FontSize="15" Height="36"                                                           HorizontalContentAlignment="Center"                                                           VerticalAlignment="Center" Margin="5,2,0,0" />                                                    <StackPanel Orientation="Horizontal" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" TextBlock.Foreground="White" Height="29" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="LightBlue"  ctrlCommon:GridHelper.Column2="Transparent" Width="426">                                                        <!--{Binding E84Data.AccessMode,Mode=OneTime,Converter={StaticResource E84AccessModeToBoolConverter}}-->                                                        <Button FontSize="12" Height="25" Margin="2,0,0,0" Width="68" x:Name="SetAMHS" Content="SetAMHS" Command="{Binding E84Command}"  CommandParameter="SetAMHS"/>                                                        <Button FontSize="12" Height="25" Margin="3,0,0,0" Width="68" x:Name="SetManual" Content="SetManual" Command="{Binding E84Command}" CommandParameter="SetManual"/>                                                        <Button FontSize="12" Height="25" Margin="3,0,0,0" Width="68" x:Name="InService" Content="InService" Command="{Binding E84Command}" CommandParameter="SetInService"/>                                                        <Button FontSize="12" Height="25" Margin="3,0,0,0" Width="68" x:Name="OutService" Content="OutService" Command="{Binding E84Command}" CommandParameter="SetOutService"/>                                                        <Button FontSize="12" Height="25" Margin="3,0,0,0" Width="68" x:Name="Proceed" Content="Proceed" Command="{Binding FALoadPortCommand}" CommandParameter="ProceedWithCarrier"/>                                                        <Button FontSize="12" Height="25" Margin="3,0,0,0" Width="68" x:Name="Cancel" Content="Cancel" Command="{Binding FALoadPortCommand}" CommandParameter="CancelCarrier"/>                                                        <!--<CheckBox x:Name="AutomaticMode"  Content="Automatic Mode" IsChecked="False"                                                              VerticalAlignment="Center" HorizontalAlignment="Left"                                                              FontSize="16" Margin="0,2" Height="25" Width="235" Grid.ColumnSpan="2">                                                                <i:Interaction.Triggers>                                                                    <i:EventTrigger EventName="Checked">                                                                        <i:InvokeCommandAction Command="{Binding E84Command}"                                                                                       CommandParameter="SetAMHS" />                                                                    </i:EventTrigger>                                                                    <i:EventTrigger EventName="Unchecked">                                                                        <i:InvokeCommandAction Command="{Binding E84Command}"                                                                                       CommandParameter="SetManual" />                                                                    </i:EventTrigger>                                                                </i:Interaction.Triggers>                                                            </CheckBox>                                                        <CheckBox  x:Name="InService"  Content="In Service" IsChecked="false"                                                              VerticalAlignment="Center" HorizontalAlignment="Left"                                                              FontSize="16" Margin="0,2" Height="25" Width="180" Grid.Column="1">                                                                <i:Interaction.Triggers>                                                                    <i:EventTrigger EventName="Checked">                                                                        <i:InvokeCommandAction Command="{Binding E84Command}"                                                                                       CommandParameter="SetInService" />                                                                    </i:EventTrigger>                                                                    <i:EventTrigger EventName="Unchecked">                                                                        <i:InvokeCommandAction Command="{Binding E84Command}"                                                                                       CommandParameter="SetOutService" />                                                                    </i:EventTrigger>                                                                </i:Interaction.Triggers>                                                            </CheckBox>-->                                                    </StackPanel>                                                </Grid>                                            </Grid>                                        </controls:HeaderPanel>                                    </DockPanel>                                </Border>                                <Border x:Name="ConfigBorder1" Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Bottom"                                        BorderThickness="1" BorderBrush="#84a567" Height="378" Width="488" Margin="2,0,0,0">                                    <DockPanel Background="{StaticResource Table_BG_Content}" Margin="9,0,-1,0">                                        <controls:HeaderPanel Header="Carrier ID Reader" Width="480">                                            <Grid>                                                <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">                                                    <Grid.ColumnDefinitions>                                                        <ColumnDefinition Width="183*"/>                                                        <ColumnDefinition Width="206*"/>                                                    </Grid.ColumnDefinitions>                                                    <Grid.RowDefinitions>                                                        <RowDefinition Height="45" />                                                        <RowDefinition Height="45" />                                                        <RowDefinition Height="45" />                                                        <RowDefinition Height="45" />                                                        <RowDefinition Height="45" />                                                        <RowDefinition Height="35" />                                                        <RowDefinition Height="30" />                                                        <RowDefinition Height="30" />                                                    </Grid.RowDefinitions>                                                    <controls:AITScBoolRow Name="PLInService" ScName="In Service" Grid.Row="0"                                                                           Grid.ColumnSpan="2"                                                                           ScId="LoadPort.LoadPort1CarrierIdReaderInUse"                                                                           ScFeedback="True"                                                                           ScSetPoint="True"                                                                           Command=""                                                                           NameWidth="185" FeedbackWidth="90"                                                                           SetPointWidth="90" CommandWidth="110" IsEnabled="True"/>                                                    <controls:AITScDoubleRow Name="PLDataReadSize" ScName="Data Read Size" Grid.Row="1"                                                                             Grid.ColumnSpan="2"                                                                             ScId="LoadPort.DataReadSize"                                                                             ScFeedback="{Binding ConfigFeedback.LoadPort_DataReadSize}"                                                                             ScSetPoint="{Binding ConfigSetPoint.LoadPort_DataReadSize}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="185" FeedbackWidth="90"                                                                             SetPointWidth="90" CommandWidth="110" />                                                    <controls:AITScDoubleRow Name="PLStartPage" ScName="Start Page" Grid.Row="2"                                                                             Grid.ColumnSpan="2"                                                                             ScId="LoadPort.StartPage"                                                                             ScFeedback="{Binding ConfigFeedback.LoadPort_StartPage}"                                                                             ScSetPoint="{Binding ConfigSetPoint.LoadPort_StartPage}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="185" FeedbackWidth="90"                                                                             SetPointWidth="90" CommandWidth="110" />                                                    <controls:AITScBoolRow Name="PLEnableAutoCarrierIdRead" ScName="Auto Read" Grid.Row="3"                                                                           Grid.ColumnSpan="2"                                                                           ScId="LoadPort.EnableAutoCarrierIdRead"                                                                           ScFeedback="{Binding ConfigFeedback.LoadPort_EnableAutoCarrierIdRead}"                                                                           ScSetPoint="{Binding ConfigSetPoint.LoadPort_EnableAutoCarrierIdRead}"                                                                           Command="{Binding SetConfigCommand}"                                                                           NameWidth="185" FeedbackWidth="90"                                                                           SetPointWidth="90" CommandWidth="110" />                                                    <controls:AITScDoubleRow Name="PLDefaultPage" ScName="Default Page" Grid.Row="4"                                                                             Grid.ColumnSpan="2"                                                                             ScId="LoadPort.DefaultPage"                                                                             ScFeedback="{Binding ConfigFeedback.LoadPort_DefaultPage}"                                                                             ScSetPoint="{Binding ConfigSetPoint.LoadPort_DefaultPage}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="185" FeedbackWidth="90"                                                                             SetPointWidth="90" CommandWidth="110" />                                                    <StackPanel Grid.Row="5" Grid.Column="0" Orientation="Horizontal" Margin="0,5,0,0" Grid.ColumnSpan="2" >                                                        <Label Content="CarrierID Reader Option:" FontSize="15" HorizontalContentAlignment="Left" Width="208" />                                                        <ComboBox  Margin="5,0,0,0" x:Name="cboCarrierIDOption" FontSize="15" ItemsSource="{Binding RobotArmSelected}" Width="260">                                                            <ComboBoxItem Content="0"></ComboBoxItem>                                                            <ComboBoxItem Content="1"></ComboBoxItem>                                                            <ComboBoxItem Content="2"></ComboBoxItem>                                                        </ComboBox>                                                    </StackPanel>                                                    <StackPanel Grid.Row="6" Grid.Column="0" Orientation="Horizontal" Margin="5,0,0,0" Grid.ColumnSpan="2" >                                                        <Button x:Name="BtnReadCarrierID" Content="Read" FontSize="12" Command="{Binding DeviceOperationCommand}"  Height="25" Margin="0,0,0,0" Width="83"  />                                                        <TextBox x:Name="txtReadCarrierID" Text="{Binding E84Data.CarrierID}" IsEnabled="True" Margin="5,2" Width="380" Height="25"/>                                                    </StackPanel>                                                    <StackPanel Grid.Row="7" Grid.Column="0" Orientation="Horizontal" Margin="5,0,0,0" Grid.ColumnSpan="2" >                                                        <Button x:Name="BtnWriteCarrierID" Content="Write" FontSize="12" Command="{Binding DeviceOperationCommand}"  Height="28" Margin="0,0,0,0" Width="83"  />                                                        <TextBox x:Name="txtWriteCarrierID"  IsEnabled="True" Margin="5,2" Width="380" Height="25"/>                                                    </StackPanel>                                                </Grid>                                            </Grid>                                        </controls:HeaderPanel>                                    </DockPanel>                                </Border>                            </Grid>                        </DockPanel>                    </Border>                    <Border Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderThickness="1"                            BorderBrush="#84a567" Height="80" Width="1600" Margin="10,0,0,6">                        <DockPanel Background="{StaticResource Table_BG_Content}" HorizontalAlignment="Left" Width="1600">                            <!--<Label Content="E84 Status Monitor" HorizontalContentAlignment="Center"                                   DockPanel.Dock="Top" Background="#7fc7ed" Height="30" />-->                            <controls:HeaderPanel Header="E84 Status Monitor" Width="1610">                                <Grid>                                    <Grid.ColumnDefinitions>                                        <ColumnDefinition Width="94*"/>                                        <ColumnDefinition Width="535*"/>                                        <ColumnDefinition Width="108*"/>                                        <ColumnDefinition Width="52*"/>                                    </Grid.ColumnDefinitions>                                    <Border BorderBrush="Gray" BorderThickness="1" Grid.ColumnSpan="4">                                        <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">                                            <Grid.ColumnDefinitions>                                                <ColumnDefinition Width="*" />                                                <ColumnDefinition Width="3*" />                                            </Grid.ColumnDefinitions>                                            <Label Grid.Row="1" Content="Status :" FontSize="18"                                               HorizontalContentAlignment="Right" VerticalAlignment="Center" />                                            <Label Content="{Binding E84Data.E84State}" Grid.Column="1"                                               BorderThickness="2"                                               BorderBrush="White" Width="400" FontSize="18"                                               HorizontalContentAlignment="Center" VerticalAlignment="Center" Height="39" Margin="219,0,218,0" />                                        </Grid>                                    </Border>                                </Grid>                            </controls:HeaderPanel>                        </DockPanel>                    </Border>                    <Border Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderThickness="1"                            BorderBrush="#84a567" Height="305" Width="1610" Margin="0,0,0,2" >                        <DockPanel Background="#d6f1ff" Margin="0,0,0,0">                            <Grid>                                <Grid.ColumnDefinitions>                                    <ColumnDefinition Width="335" />                                    <ColumnDefinition Width="335" />                                    <ColumnDefinition Width="505" />                                    <ColumnDefinition Width="442" />                                </Grid.ColumnDefinitions>                                <Border x:Name="Inputs" Grid.Column="0" HorizontalAlignment="Left"                                        VerticalAlignment="Top"                                        BorderThickness="1" BorderBrush="#84a567" Height="265" Width="310" Margin="10,0,5,0">                                    <DockPanel Background="{StaticResource Table_BG_Content}">                                        <controls:HeaderPanel Header="E84 Factory Inputs" Width="310">                                            <Grid>                                                <Border BorderBrush="Gray" BorderThickness="1">                                                    <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">                                                        <Grid.ColumnDefinitions>                                                            <ColumnDefinition Width="1.9*" />                                                            <ColumnDefinition Width="*" />                                                        </Grid.ColumnDefinitions>                                                        <Grid.RowDefinitions>                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                        </Grid.RowDefinitions>                                                        <Label Grid.Row="0" Content="Vaild :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="0" Grid.Column="1"                                                                    On="{Binding E84Data.Valid}" />                                                        <Label Grid.Row="1" Content="Transfer Request :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="1" Grid.Column="1"                                                                    On="{Binding E84Data.TransferRequest}" />                                                        <Label Grid.Row="2" Content="Busy :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="2" Grid.Column="1"                                                                    On="{Binding E84Data.Busy}" />                                                        <Label Grid.Row="3" Content="Transfer Complete :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="3" Grid.Column="1"                                                                    On="{Binding E84Data.TransferComplete}" />                                                        <Label Grid.Row="4" Content="CS_0 :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="4" Grid.Column="1"                                                                    On="{Binding E84Data.CS0}" />                                                        <Label Grid.Row="5" Content="CS_1 :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="5" Grid.Column="1"                                                                    On="False" />                                                        <Label Grid.Row="6" Content="Continuous Transfer :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="6" Grid.Column="1"                                                                    On="{Binding E84Data.ContinuousTransfer}" />                                                    </Grid>                                                </Border>                                            </Grid>                                        </controls:HeaderPanel>                                    </DockPanel>                                </Border>                                <Border x:Name="Outputs" Grid.Column="1" HorizontalAlignment="Left"                                        VerticalAlignment="Top"                                        BorderThickness="1" BorderBrush="#84a567" Height="265" Width="310" Margin="5,0,5,0">                                    <DockPanel Background="{StaticResource Table_BG_Content}">                                        <!--<Label Content="E84 Factory Outputs" HorizontalContentAlignment="Center"                                               DockPanel.Dock="Top" Background="#7fc7ed" Height="30" />-->                                        <controls:HeaderPanel Header="E84 Factory Outputs" Width="310">                                            <Grid>                                                <Grid.RowDefinitions>                                                    <RowDefinition Height="3*" />                                                    <RowDefinition Height="65" />                                                </Grid.RowDefinitions>                                                <Border Grid.Row="0" BorderBrush="Gray" BorderThickness="1">                                                    <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">                                                        <Grid.ColumnDefinitions>                                                            <ColumnDefinition Width="1.9*" />                                                            <ColumnDefinition Width="*" />                                                        </Grid.ColumnDefinitions>                                                        <Grid.RowDefinitions>                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                            <RowDefinition Height="32" />                                                        </Grid.RowDefinitions>                                                        <Label Grid.Row="0" Content="Load Request :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="0" Grid.Column="1"                                                                    On="{Binding E84Data.LoadRequest}" />                                                        <Label Grid.Row="1" Content="Unload Request :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="1" Grid.Column="1"                                                                    On="{Binding E84Data.UnloadRequest}" />                                                        <Label Grid.Row="2" Content="Ready to Transfer :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="2" Grid.Column="1"                                                                    On="{Binding E84Data.ReadyToTransfer}" />                                                        <Label Grid.Row="3" Content="Handoff Available :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="3" Grid.Column="1"                                                                    On="{Binding E84Data.HandoffAvailable}" />                                                        <Label Grid.Row="4" Content="Emergency Stop OK :" FontSize="18"                                                           HorizontalContentAlignment="Right" />                                                        <ctrlCommon:LED Grid.Row="4" Grid.Column="1"                                                                    On="{Binding E84Data.EmergencyOk}" />                                                    </Grid>                                                </Border>                                                <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="1" Height="65">                                                    <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">                                                        <CheckBox Content="Error on Placement Timeout" IsChecked="True" IsEnabled="False"                                                              VerticalAlignment="Center" HorizontalAlignment="Center"                                                              FontSize="16" />                                                    </Grid>                                                </Border>                                            </Grid>                                        </controls:HeaderPanel>                                    </DockPanel>                                </Border>                                <Border x:Name="ConfigBorder" Grid.Column="2" HorizontalAlignment="Left"                                        VerticalAlignment="Top"                                        BorderThickness="1" BorderBrush="#84a567" Height="263" Width="500" Margin="5,0,5,0">                                    <DockPanel Background="{StaticResource Table_BG_Content}">                                        <controls:HeaderPanel Header="TimeOut Settings" Width="500">                                            <!--<Label Content="TimeOut Settings" HorizontalContentAlignment="Center"                                               DockPanel.Dock="Top" Background="#7fc7ed" Height="30" />-->                                            <Grid>                                                <Border BorderBrush="Gray" BorderThickness="1">                                                    <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">                                                        <Grid.ColumnDefinitions>                                                            <ColumnDefinition Width="41*"/>                                                            <ColumnDefinition Width="58*"/>                                                            <ColumnDefinition Width="20*"/>                                                        </Grid.ColumnDefinitions>                                                        <Grid.RowDefinitions>                                                            <RowDefinition Height="37" />                                                            <RowDefinition Height="37" />                                                            <RowDefinition Height="37" />                                                            <RowDefinition Height="37" />                                                            <RowDefinition Height="37" />                                                            <RowDefinition Height="37" />                                                        </Grid.RowDefinitions>                                                        <controls:AITScDoubleRow ScName="TP1 (sec)" Grid.Row="0"                                                                             ScId="Fa.E84.TP1"                                                                             ScFeedback="{Binding ConfigFeedback.Fa_E84_TP1}"                                                                             ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP1}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="115" FeedbackWidth="130"                                                                             SetPointWidth="130" CommandWidth="120" Grid.ColumnSpan="3" />                                                        <controls:AITScDoubleRow ScName="TP2 (sec)" Grid.Row="1"                                                                             ScId="Fa.E84.TP2"                                                                             ScFeedback="{Binding ConfigFeedback.Fa_E84_TP2}"                                                                             ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP2}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="115" FeedbackWidth="130"                                                                              SetPointWidth="130" CommandWidth="120" Grid.ColumnSpan="3" />                                                        <controls:AITScDoubleRow ScName="TP3 (sec)" Grid.Row="2"                                                                             ScId="Fa.E84.TP3"                                                                             ScFeedback="{Binding ConfigFeedback.Fa_E84_TP3}"                                                                             ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP3}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="115" FeedbackWidth="130"                                                                             SetPointWidth="130" CommandWidth="120" Grid.ColumnSpan="3" />                                                        <controls:AITScDoubleRow ScName="TP4(sec)" Grid.Row="3"                                                                             ScId="Fa.E84.TP4"                                                                             ScFeedback="{Binding ConfigFeedback.Fa_E84_TP4}"                                                                             ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP4}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="115" FeedbackWidth="130"                                                                             SetPointWidth="130" CommandWidth="120" Grid.ColumnSpan="3" />                                                        <controls:AITScDoubleRow ScName="TP5(sec)" Grid.Row="4"                                                                             ScId="Fa.E84.TP5"                                                                             ScFeedback="{Binding ConfigFeedback.Fa_E84_TP5}"                                                                             ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP5}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="115" FeedbackWidth="130"                                                                             SetPointWidth="130" CommandWidth="120" Grid.ColumnSpan="3" />                                                        <controls:AITScDoubleRow ScName="TP6(sec)" Grid.Row="5"                                                                             ScId="Fa.E84.TP6"                                                                             ScFeedback="{Binding ConfigFeedback.Fa_E84_TP6}"                                                                             ScSetPoint="{Binding ConfigSetPoint.Fa_E84_TP6}"                                                                             Command="{Binding SetConfigCommand}"                                                                             NameWidth="115" FeedbackWidth="130"                                                                             SetPointWidth="130" CommandWidth="120" Grid.ColumnSpan="3" />                                                    </Grid>                                                </Border>                                            </Grid>                                        </controls:HeaderPanel>                                    </DockPanel>                                </Border>                                <Border Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Top"                                        BorderThickness="1" BorderBrush="#84a567" Height="263" Width="412" Margin="15,0,0,0">                                    <DockPanel Background="{StaticResource Table_BG_Content}">                                        <controls:HeaderPanel Header="Error Recovery" Width="412">                                            <!--<Label Content="Error Recovery" HorizontalContentAlignment="Center"                                               DockPanel.Dock="Top" Background="#7fc7ed" Height="30" />-->                                            <Grid>                                                <Grid.ColumnDefinitions>                                                    <ColumnDefinition Width="77*"/>                                                    <ColumnDefinition Width="333*"/>                                                </Grid.ColumnDefinitions>                                                <Grid.RowDefinitions>                                                    <RowDefinition Height="*" />                                                    <RowDefinition Height="50" />                                                    <RowDefinition Height="50" />                                                    <RowDefinition Height="125" />                                                </Grid.RowDefinitions>                                                <Button Content="Retry" x:Name="btnRetry" Grid.Row="1" FontSize="20"                                                    Width="120" Height="42" VerticalAlignment="Center" Command="{Binding E84Command}"                                                            CommandParameter="E84Retry" Grid.Column="1" Margin="68,0,145,0" />                                                <Button Content="Complete" x:Name="btnComplete" Grid.Row="2" FontSize="20"                                                    Width="120" Height="42" VerticalAlignment="Center" Command="{Binding E84Command}"                                                            CommandParameter="E84Complete" Grid.Column="1" Margin="68,0,145,0" />                                                <Border Grid.Row="3" BorderBrush="Gray" BorderThickness="1" Height="120" Grid.ColumnSpan="2" Margin="0,2,0,2">                                                    <Grid ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent" Margin="10">                                                        <CheckBox Content="Error on access mode violation"                                                              IsChecked="False" VerticalAlignment="Center"                                                              HorizontalAlignment="Center" VerticalContentAlignment="Center" FontSize="16" IsEnabled="False"/>                                                    </Grid>                                                </Border>                                            </Grid>                                        </controls:HeaderPanel>                                    </DockPanel>                                </Border>                            </Grid>                        </DockPanel>                    </Border>                    <Border  HorizontalAlignment="Right" VerticalAlignment="Bottom" BorderThickness="1"                            BorderBrush="#84a567" Height="793" Width="282" Margin="0,0,0,0" Grid.RowSpan="3">                        <DockPanel Background="{StaticResource Table_BG_Content}" HorizontalAlignment="Left">                            <controls:HeaderPanel Header="Wafer Thickness(1=0.01mm)" Width="282" RenderTransformOrigin="0.045,0.503">                                <DataGrid  FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding E84Data.AllSlotThickness}"                       ScrollViewer.CanContentScroll="True"                       ScrollViewer.VerticalScrollBarVisibility="Auto"                      ScrollViewer.HorizontalScrollBarVisibility="Auto" Height="754" VerticalAlignment="Top" Margin="0,0,0,0" Width="282">                                    <DataGrid.Columns>                                        <DataGridTemplateColumn Header="Slot" Width="100" IsReadOnly="True">                                            <DataGridTemplateColumn.CellTemplate>                                                <DataTemplate>                                                    <Label Width="100" FontSize="12" HorizontalAlignment="Center" Background="{StaticResource Table_BG_Content}"   Content="{Binding SlotName}"/>                                                </DataTemplate>                                            </DataGridTemplateColumn.CellTemplate>                                        </DataGridTemplateColumn>                                        <DataGridTemplateColumn Header="Thickness" Width="180" IsReadOnly="True">                                            <DataGridTemplateColumn.CellTemplate>                                                <DataTemplate>                                                    <TextBlock Width="180"  FontSize="12" Foreground="Gray" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Stretch" Background="#d6f1ff"  Text="{Binding Value}"/>                                                </DataTemplate>                                            </DataGridTemplateColumn.CellTemplate>                                        </DataGridTemplateColumn>                                    </DataGrid.Columns>                                </DataGrid>                            </controls:HeaderPanel>                        </DockPanel>                    </Border>                </Grid>            </DockPanel>        </Border>    </Grid></UserControl>
 |