| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 | <UserControl x:Class="Venus_Themes.UserControls.ChamberWithHeater"             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:controls="http://OpenSEMI.Ctrlib.com/presentation"                          mc:Ignorable="d"              xmlns:converters="clr-namespace:Venus_Themes.Converters"             d:DesignHeight="300" d:DesignWidth="300" x:Name="chamber">    <VisualStateManager.VisualStateGroups>        <VisualStateGroup Name="HeaterActions">            <VisualStateGroup.Transitions>                <VisualTransition To="Position1">                    <Storyboard FillBehavior="HoldEnd">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                            <LinearDoubleKeyFrame Value="10" KeyTime="0:0:0.5"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                </VisualTransition>                <VisualTransition To="Origin">                    <Storyboard FillBehavior="HoldEnd">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.5"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                </VisualTransition>                <VisualTransition To="Position2">                    <Storyboard FillBehavior="HoldEnd">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                            <LinearDoubleKeyFrame Value="-10" KeyTime="0:0:0.5"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                </VisualTransition>                <VisualTransition To="Position3">                    <Storyboard FillBehavior="HoldEnd">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                            <LinearDoubleKeyFrame Value="-20" KeyTime="0:0:0.5"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                </VisualTransition>                <VisualTransition To="Position4">                    <Storyboard FillBehavior="HoldEnd">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                            <LinearDoubleKeyFrame Value="-30" KeyTime="0:0:0.5"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                </VisualTransition>                <VisualTransition To="Position5">                    <Storyboard FillBehavior="HoldEnd">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                            <LinearDoubleKeyFrame Value="-40" KeyTime="0:0:0.5"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                </VisualTransition>            </VisualStateGroup.Transitions>            <VisualState Name="Position1">                <Storyboard FillBehavior="HoldEnd">                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                        <LinearDoubleKeyFrame Value="10" KeyTime="0:0:0"/>                    </DoubleAnimationUsingKeyFrames>                </Storyboard>            </VisualState>            <VisualState Name="Origin">                <Storyboard FillBehavior="HoldEnd">                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                        <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>                    </DoubleAnimationUsingKeyFrames>                </Storyboard>            </VisualState>            <VisualState Name="Position2">                <Storyboard FillBehavior="HoldEnd">                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                        <LinearDoubleKeyFrame Value="-10" KeyTime="0:0:0"/>                    </DoubleAnimationUsingKeyFrames>                </Storyboard>            </VisualState>            <VisualState Name="Position3">                <Storyboard FillBehavior="HoldEnd">                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                        <LinearDoubleKeyFrame Value="-20" KeyTime="0:0:0"/>                    </DoubleAnimationUsingKeyFrames>                </Storyboard>            </VisualState>            <VisualState Name="Position4">                <Storyboard FillBehavior="HoldEnd">                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                        <LinearDoubleKeyFrame Value="-30" KeyTime="0:0:0"/>                    </DoubleAnimationUsingKeyFrames>                </Storyboard>            </VisualState>            <VisualState Name="Position5">                <Storyboard FillBehavior="HoldEnd">                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="heaterRotateAct" Storyboard.TargetProperty="Y">                        <LinearDoubleKeyFrame Value="-40" KeyTime="0:0:0"/>                    </DoubleAnimationUsingKeyFrames>                </Storyboard>            </VisualState>        </VisualStateGroup>    </VisualStateManager.VisualStateGroups>            <UserControl.Resources>        <Storyboard x:Key="SlitValve_Open">            <DoubleAnimation Storyboard.TargetProperty="(FrameworkElement.Height)" Duration="0:0:1" To="42"/>        </Storyboard>                <Storyboard x:Key="SlitValve_Close">            <DoubleAnimation Storyboard.TargetProperty="(FrameworkElement.Height)" Duration="0:0:1" To="75"/>        </Storyboard>                <Style TargetType="{x:Type Rectangle}" x:Key="SlitValve_Animation" >            <Style.Triggers>                <DataTrigger Binding="{Binding ElementName=chamber,Path=IsOpenSlitDoor}" Value="true">                    <DataTrigger.EnterActions>                        <BeginStoryboard Storyboard="{StaticResource SlitValve_Open}"/>                    </DataTrigger.EnterActions>                    <DataTrigger.ExitActions>                        <BeginStoryboard Storyboard="{StaticResource SlitValve_Close}"/>                    </DataTrigger.ExitActions>                </DataTrigger>            </Style.Triggers>        </Style>        <LinearGradientBrush StartPoint="0,0" EndPoint="1,1" x:Key="rfcolor">            <LinearGradientBrush.GradientStops>                <GradientStop Color="#FFCC00" Offset="0" />                <GradientStop Color="#FF6600" Offset="0.5" />                <GradientStop Color="#CC3300" Offset="0.75" />                <GradientStop Color="#FF0000" Offset="1" />            </LinearGradientBrush.GradientStops>        </LinearGradientBrush>        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="chambercolor">            <LinearGradientBrush.GradientStops>                <GradientStop Color="#D3D3D3" Offset="0" />                <GradientStop Color="White" Offset="0.5" />                <GradientStop Color="#D3D3D3" Offset="1" />            </LinearGradientBrush.GradientStops>        </LinearGradientBrush>        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="threadrcolor">            <LinearGradientBrush.GradientStops>                <GradientStop Color="#FFECB7" Offset="0" />                <GradientStop Color="#B98903" Offset="0.3" />                <GradientStop Color="#EBBF43" Offset=".6" />                <GradientStop Color="#BB8900" Offset="1" />            </LinearGradientBrush.GradientStops>        </LinearGradientBrush>        <LinearGradientBrush StartPoint="0,0" EndPoint="1,1" x:Key="heatercolor">            <LinearGradientBrush.GradientStops>                <GradientStop Color="#C88D02" Offset="0" />                <GradientStop Color="#EBBF43" Offset=".5" />                <GradientStop Color="#BB8900" Offset="1" />            </LinearGradientBrush.GradientStops>        </LinearGradientBrush>    </UserControl.Resources>    <Canvas >        <Grid Width="240" Height="190" Canvas.Top="80">            <Grid.RowDefinitions>                <RowDefinition Height="160"/>                <RowDefinition />            </Grid.RowDefinitions>            <Path Data="M0.5,0.5 L33.5,0.5 33.5,17.5 206.5,17.5 206.5,0.5 239.5,0.5 239.5,149.5 0.5,149.5 z" Stroke="#FF747474" Margin="0,10,0,0">                <Path.Fill>                    <LinearGradientBrush EndPoint="1,1" StartPoint="0,0">                        <GradientStop Color="#FF8F8F8F" Offset="0"/>                        <GradientStop Color="#FF9B9B9B" Offset="1"/>                        <GradientStop Color="#FEF1ECEC" Offset="0.15"/>                        <GradientStop Color="#FEC0C0C0" Offset="0.38"/>                        <GradientStop Color="#FEB4B4B4" Offset="0.5"/>                        <GradientStop Color="#FEE5E5E5" Offset="0.7"/>                        <GradientStop Color="#FFBABABA" Offset="0.85"/>                        <GradientStop Color="#FFE5E5E5" Offset="0.9"/>                    </LinearGradientBrush>                </Path.Fill>            </Path>            <Rectangle Stroke="#FF747474" Margin="8,18">                <Rectangle.Fill>                    <LinearGradientBrush EndPoint="0.243,1" StartPoint="0.757,0">                        <GradientStop Color="#FFE0DEDE" Offset="0"/>                        <GradientStop Color="#FFE2E2E2" Offset="1"/>                        <GradientStop Color="#FEFFFFFF" Offset="0.55"/>                        <GradientStop Color="#FFEFEFEF" Offset="0.75"/>                    </LinearGradientBrush>                </Rectangle.Fill>            </Rectangle>            <Rectangle x:Name="BG_Status" Margin="9,19" Visibility="{Binding BiasRfPowerOnChamberVisibility}" Cursor="Hand">                <Rectangle.ContextMenu >                    <ContextMenu>                        <MenuItem Header="Create Wafer"  Click="CreateWafer_Click"     IsChecked="{Binding IsHasWafer}" IsEnabled="{Binding IsHasWafer,Converter={StaticResource BoolToBool}}"/>                        <MenuItem Header="Delete Wafer"  Click="DeleteWafer_Click"     IsChecked="{Binding IsHasWafer,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding IsHasWafer}"/>                    </ContextMenu>                </Rectangle.ContextMenu>                <Rectangle.Style>                    <Style>                        <Setter Property="Rectangle.Fill" Value="{StaticResource chambercolor}"/>                        <Style.Triggers>                            <DataTrigger Binding="{Binding ElementName=chamber,Path=IsBRFOn}"  Value="True">                                <Setter Property="Rectangle.Fill" Value="{StaticResource rfcolor}"></Setter>                            </DataTrigger>                        </Style.Triggers>                    </Style>                </Rectangle.Style>            </Rectangle>            <Rectangle Stroke="#FF747474" Height="11" VerticalAlignment="Bottom" Margin="12,0,12,8">                <Rectangle.Fill>                    <LinearGradientBrush EndPoint="0.243,1" StartPoint="0.757,0">                        <GradientStop Color="#FFE0DEDE" Offset="0"/>                        <GradientStop Color="#FFE2E2E2" Offset="1"/>                        <GradientStop Color="#FEFFFFFF" Offset="0.55"/>                        <GradientStop Color="#FFEFEFEF" Offset="0.75"/>                    </LinearGradientBrush>                </Rectangle.Fill>            </Rectangle>            <Grid x:Name="Cover" Width="180" Height="18" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,2,0,0" RenderTransformOrigin="1,0.4444">                <Grid.RenderTransform>                    <TransformGroup>                        <ScaleTransform/>                        <SkewTransform/>                        <RotateTransform/>                        <TranslateTransform/>                    </TransformGroup>                </Grid.RenderTransform>                <Grid.Resources>                    <Storyboard x:Key="CoverOpen">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">                            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="20"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                    <Storyboard x:Key="CoverClose">                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">                            <EasingDoubleKeyFrame KeyTime="0" Value="20"/>                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>                        </DoubleAnimationUsingKeyFrames>                    </Storyboard>                </Grid.Resources>                <Grid.Style>                    <Style>                        <Style.Triggers>                            <DataTrigger Binding="{Binding ElementName=chamber,Path=IsLidOpen}" Value="true">                                <DataTrigger.EnterActions>                                    <BeginStoryboard Storyboard="{StaticResource CoverOpen}"/>                                </DataTrigger.EnterActions>                                <DataTrigger.ExitActions>                                    <BeginStoryboard Storyboard="{StaticResource CoverClose}"/>                                </DataTrigger.ExitActions>                            </DataTrigger>                        </Style.Triggers>                    </Style>                </Grid.Style>                <Rectangle Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Bottom" Fill="{DynamicResource Lid_BG}" Stroke="{DynamicResource Lid_BD}" Width="172" Height="12"/>                <Rectangle Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Top" Fill="{DynamicResource Lid_BG}" Stroke="{DynamicResource Lid_BD}" Width="180" Height="8"/>                <Line X1="35" Y1="-80" X2="120" Y2="-90" Stroke="{StaticResource threadrcolor}" StrokeThickness="5"/>                <Line X1="35" Y1="-60" X2="145" Y2="-70" Stroke="{StaticResource threadrcolor}" StrokeThickness="5"/>                <Line X1="35" Y1="-40" X2="145" Y2="-50" Stroke="{StaticResource threadrcolor}" StrokeThickness="5"/>                <Line X1="35" Y1="-20" X2="145" Y2="-30" Stroke="{StaticResource threadrcolor}" StrokeThickness="5"/>                <Rectangle  Stroke="Gray" Fill="{StaticResource doorColor}"  Margin="130,-101,42,0" Width="8" VerticalAlignment="Top" Height="102" />                <Rectangle  Stroke="Gray" Fill="{StaticResource doorColor}" Margin="42,-101,130,0" Width="8" VerticalAlignment="Top" Height="102" />                <Rectangle  Stroke="Gray" Fill="{StaticResource doorColor2}" Margin="42,-106,42,0" VerticalAlignment="Top" Height="7" />                <Rectangle  Fill="White" Margin="50,-101,50,0" Width="80" Height="118" />                <Rectangle  x:Name="BG_Status1"  Margin="50,-101,50,0" Width="80" Height="118" Visibility="{Binding RfPowerOnChamberVisibility}" >                    <Rectangle.Style>                        <Style>                            <Setter Property="Rectangle.Fill" Value="{StaticResource chambercolor}"/>                            <Style.Triggers>                                <DataTrigger Binding="{Binding ElementName=chamber,Path=IsSRFOn}"  Value="True">                                    <Setter Property="Rectangle.Fill" Value="{StaticResource rfcolor}"/>                                </DataTrigger>                            </Style.Triggers>                        </Style>                    </Rectangle.Style>                </Rectangle>                <Rectangle  Stroke="#FF000000" Width="80" Height="10" Margin="0,8,0,0" StrokeThickness="1" StrokeDashArray="4 2" SnapsToDevicePixels="True"/>                <Rectangle  Stroke="#FF000000" Width="80" Height="9" Margin="0,-10,0,0" StrokeThickness="1" StrokeDashArray="4 2" SnapsToDevicePixels="True"/>                <Line X1="35" Y1="-40" X2="145" Y2="-30" Stroke="{StaticResource threadrcolor}" StrokeThickness="5"/>                <Line X1="35" Y1="-60" X2="145" Y2="-50" Stroke="{StaticResource threadrcolor}" StrokeThickness="5"/>                <Line X1="35" Y1="-80" X2="145" Y2="-70" Stroke="{StaticResource threadrcolor}" StrokeThickness="5"/>            </Grid>            <Grid Grid.RowSpan="2" Width="160" Height="167" VerticalAlignment="Bottom" Margin="0,0,0,2">                <!--lift pin-->                <Grid x:Name="Top_LiftPin" Height="51" VerticalAlignment="Bottom" Margin="0,0,0,28" >                    <Rectangle HorizontalAlignment="Left" Fill="{StaticResource heatercolor}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="48,10,0,4"/>                    <Rectangle HorizontalAlignment="Right" Fill="{StaticResource heatercolor}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="0,10,48,4"/>                    <Rectangle Stroke="{DynamicResource Lid_BD}" Fill="{StaticResource heatercolor}" StrokeThickness="1" VerticalAlignment="Bottom" Height="8" Margin="5,0" Width="64" />                    <Rectangle  HorizontalAlignment="Center" Margin="-100,0"  Width="{Binding WaferLength}" Height="10" VerticalAlignment="Top"/>                                    </Grid>                               <Canvas  Margin="29.5,100,0,0" x:Name="heater">                    <Canvas.RenderTransform>                        <TransformGroup>                            <TranslateTransform  x:Name="heaterRotateAct"/>                        </TransformGroup>                    </Canvas.RenderTransform>                    <!--<TextBlock Text="{Binding  ElementName=chamber,Path=WaferID}" Margin="30,-32,0,0" TextAlignment="Center" ></TextBlock>                    <Border x:Name="border1" BorderThickness="1" BorderBrush="DarkGray" CornerRadius="4" VerticalAlignment="Top"  Height="10" Margin="0,-12,0,0" Width="100" Visibility="{Binding ElementName=chamber,Path=IsHasWafer,Converter={StaticResource bool2VisibilityConverter}}">                        <Border.Background>                            <RadialGradientBrush >                                <GradientStop Color="AliceBlue" Offset="0" />                                <GradientStop Color="LightGreen" Offset="1" />                            </RadialGradientBrush>                        </Border.Background>                    </Border>-->                    <controls:Slot x:Name="border1" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" DataContext="{Binding ElementName=chamber, Path=RobotWafer}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="5,-11,0,0"  >                    </controls:Slot>                    <Rectangle HorizontalAlignment="Left" Fill="{StaticResource heatercolor}" Stroke="Black" Width="100" Height="10"/>                    <Rectangle HorizontalAlignment="Left" Fill="{StaticResource heatercolor}" Stroke="Black" Width="100" Height="10"  Canvas.Top="10"/>                    <Rectangle HorizontalAlignment="Left" Fill="{StaticResource heatercolor}" Stroke="Black" Width="30"  Height="50"  Canvas.Top="20" Canvas.Left="36"/>                </Canvas>                <!--<Canvas Margin="11,100,0,0">                    <Canvas.RenderTransform>                        <TransformGroup>                            <TranslateTransform  x:Name="waferRotateAct"/>                        </TransformGroup>                    </Canvas.RenderTransform>                                   </Canvas>-->                <!--左边slit door-->                <Grid x:Name="Slit_valve" Margin="-41,-10,191,29" >                    <Rectangle x:Name="SlitValve_Top"     Fill="{StaticResource doorColor3}" Width="8" VerticalAlignment="Top" Height="75"   />                    <Rectangle x:Name="SlitValve_Bottom"  Fill="{StaticResource doorColor3}" Width="8" VerticalAlignment="Bottom" Height="75" />                </Grid>                <!--slit door右边-->                <Grid Margin="190,-10,-40,29" Cursor="Hand">                    <Grid.ContextMenu>                        <ContextMenu >                            <MenuItem Header="Open Door"   Click="OpenDoor_Click"  IsChecked="{Binding IsSlitDoorClosed,Converter={StaticResource BoolToBool}}"                                        IsEnabled="{Binding IsSlitDoorClosed}"/>                            <MenuItem Header="Close Door"  Click="CloseDoor_Click"  IsChecked="{Binding IsSlitDoorClosed}"  IsEnabled="{Binding IsSlitDoorClosed,Converter={StaticResource BoolToBool}}"/>                        </ContextMenu>                    </Grid.ContextMenu>                    <Rectangle x:Name="rectangle1"  Fill="{StaticResource doorColor3}"  Style="{StaticResource SlitValve_Animation}" Width="8" VerticalAlignment="Top"    Height="75" />                    <Rectangle x:Name="rectangle2"  Fill="{StaticResource doorColor3}"  Style="{StaticResource SlitValve_Animation}" Width="8" VerticalAlignment="Bottom" Height="75" />                </Grid>            </Grid>        </Grid>    </Canvas></UserControl>
 |