| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 | <UserControl x:Class="FurnaceUI.Views.Maintenances.BoatSensorView"             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:ctrl="http://OpenSEMI.Ctrlib.com/presentation"             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"             xmlns:cal="http://www.caliburn.org"             xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"             xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"             mc:Ignorable="d"              d:DesignHeight="800" d:DesignWidth="660" x:Name="self">    <UserControl.Resources>        <DataTemplate  x:Key="IndexTemplate">            <Label Content="{Binding Index}"  Width="30" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>        </DataTemplate>        <DataTemplate  x:Key="NameTemplate">            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,0">                <Label Content="{Binding DisplayName}"  Width="350" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>            </Border>        </DataTemplate>        <DataTemplate  x:Key="ValueTemplate">            <deviceControl:AITSensor LightOnValue="{Binding Value}" GreenColor="True"  Width="100" Height="36" VerticalAlignment="Center" HorizontalAlignment="Center">            </deviceControl:AITSensor>        </DataTemplate>    </UserControl.Resources>    <Grid Margin="10,0,10,0">        <Grid.RowDefinitions>            <RowDefinition Height="Auto"/>            <RowDefinition Height="Auto"/>            <RowDefinition Height="50"/>        </Grid.RowDefinitions>        <Grid Grid.Row="0" Grid.ColumnSpan="3">            <Grid.RowDefinitions>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>                <RowDefinition Height="30"/>            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="250"/>                <ColumnDefinition Width="200"/>                <ColumnDefinition Width="198"/>            </Grid.ColumnDefinitions>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="0" Grid.Column="0"  Padding="5,1">                <TextBlock Text="Boat Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="0" Grid.Column="1" Padding="5,1">                <TextBlock Text="{Binding BoatStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="0" Grid.Column="2" Padding="5,1">                <Button Content="Initialize" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsWaferRobotInitialized}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="Home"/>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0"  Padding="5,1" Grid.RowSpan="5">                <TextBlock Text="Boat Z Axis Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="1" Grid.Column="1" Padding="5,1" Grid.RowSpan="5">                <TextBlock Text="{Binding BoatPosition}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="1" Grid.Column="2" Padding="5,1">                <Button Content="Home Position" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatZAxisMotion">                                <cal:Parameter Value="HomePosition"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="2" Grid.Column="2" Padding="5,1">                <Button Content="Position 1" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatZAxisMotion">                                <cal:Parameter Value="Position1"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="3" Grid.Column="2" Padding="5,1">                <Button Content="Position 2" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatZAxisMotion">                                <cal:Parameter Value="Position2"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="5" Grid.Column="2" Padding="5,1">                <Button Content="Stop" Width="170" Height="26" Margin="0" FontSize="13" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatZAxisMotion">                                <cal:Parameter Value="Stop"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="4" Grid.Column="2" Padding="5,1">                <Button Content="Process Position" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatZAxisMotion">                                <cal:Parameter Value="ProcessPosition"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Grid.Column="0"  Padding="5,1">                <TextBlock Text="Boat Z Axis Speed" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="6" Grid.Column="1" Padding="5,1">                <TextBlock Text="" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="6" Grid.Column="2" Padding="5,1">                <StackPanel Orientation="Horizontal">                    <ctrl:TextBoxEx Height="26" Text="" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Margin="10,0,4,0" IsEnabled="{Binding IsEnableManualOperation}"/>                    <Button Content="Set" Width="65" Height="26" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetValue">                                    <cal:Parameter Value=""/>                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </StackPanel>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Grid.Column="0"  Padding="5,1" Grid.RowSpan="3">                <TextBlock Text="Boat Rotation Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="7" Grid.Column="1" Padding="5,1" Grid.RowSpan="3">                <TextBlock Text="{Binding BoatRotateSttus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="7" Grid.Column="2" Padding="5,1">                <Button Content="Continuously" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatRotate">                                <cal:Parameter Value="Continuously"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="8" Grid.Column="2" Padding="5,1">                <Button Content="Interval" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatRotate">                                <cal:Parameter Value="Interval"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="9" Grid.Column="2" Padding="5,1">                <Button Content="Stop Rotation" Width="170" Height="26" Margin="0" FontSize="13" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetBoatRotate">                                <cal:Parameter Value="Stop"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="10" Grid.Column="0"  Padding="5,1">                <TextBlock Text="Boat Rotate Degree In Interal Mode" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="10" Grid.Column="1" Padding="5,1">                <TextBlock Text="" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="10" Grid.Column="2" Padding="5,1">                <StackPanel Orientation="Horizontal">                    <ctrl:TextBoxEx Height="26" Text="" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Margin="10,0,4,0" IsEnabled="{Binding IsEnableManualOperation}"/>                    <Button Content="Set" Width="65" Height="26" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetValue">                                    <cal:Parameter Value=""/>                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </StackPanel>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="11" Grid.Column="0"  Padding="5,1">                <TextBlock Text="Boat Rotate Interal Time In Interal Mode" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="11" Grid.Column="1" Padding="5,1">                <TextBlock Text="" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="11" Grid.Column="2" Padding="5,1">                <StackPanel Orientation="Horizontal">                    <ctrl:TextBoxEx Height="26" Text="" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" Margin="10,0,4,0" IsEnabled="{Binding IsEnableManualOperation}"/>                    <Button Content="Set" Width="65" Height="26" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetValue">                                    <cal:Parameter Value=""/>                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </StackPanel>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="12" Grid.Column="0"  Padding="5,1" Grid.RowSpan="2">                <TextBlock Text="Shutter Open/Close" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="12" Grid.Column="1" Padding="5,1" Grid.RowSpan="2">                <TextBlock Text="{Binding AutoShutterOpenCloseStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="12" Grid.Column="2" Padding="5,1">                <Button Content="Shutter Open" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetShutterOpen">                                <cal:Parameter Value="true"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="13" Grid.Column="2" Padding="5,1">                <Button Content="Shutter Close" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetShutterOpen">                                <cal:Parameter Value="false"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="14" Grid.Column="0"  Padding="5,1" Grid.RowSpan="2">                <TextBlock Text="Shutter Up/Down" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="13" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content_Inner}" Grid.Row="14" Grid.Column="1" Padding="5,1" Grid.RowSpan="2">                <TextBlock Text="{Binding AutoShutterUpDownStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="14" Grid.Column="2" Padding="5,1">                <Button Content="Shutter Up" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetAutoShutterUp">                                <cal:Parameter Value="true"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title_Inner}" Grid.Row="15" Grid.Column="2" Padding="5,1">                <Button Content="Shutter Down" Width="170" Height="26" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="SetAutoShutterUp">                                <cal:Parameter Value="false"/>                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>        </Grid>                      <GroupBox Grid.Row="1" Grid.ColumnSpan="3">            <ListView ItemsSource="{Binding BoatSensors}" MaxHeight="175">                <ListView.View>                    <GridView>                        <GridViewColumn Header="Index" CellTemplate="{StaticResource ResourceKey=IndexTemplate}"></GridViewColumn>                        <GridViewColumn Header="Name" CellTemplate="{StaticResource ResourceKey=NameTemplate}"></GridViewColumn>                        <GridViewColumn Header="Value" CellTemplate="{StaticResource ResourceKey=ValueTemplate}"></GridViewColumn>                    </GridView>                </ListView.View>            </ListView>        </GroupBox>        <DockPanel Grid.Row="2" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,0,0">            <Border>                <Button Content="Close"  Style="{StaticResource CommandButton}" Margin="0,0,20,0" Width="120" Height="40">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="ClosedCmd">                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </Border>        </DockPanel>    </Grid></UserControl>
 |