|
@@ -1041,10 +1041,53 @@
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type customControls:PunkRobotControl}">
|
|
|
<Viewbox x:Name="viewbox" Stretch="Fill">
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
+ <VisualStateGroup Name="RobotFActions">
|
|
|
+ <VisualStateGroup.Transitions>
|
|
|
+ <VisualTransition To="UpperToDown">
|
|
|
+ <Storyboard FillBehavior="HoldEnd" SpeedRatio="18">
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:4.5" Value="{x:Static Visibility.Hidden}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2Down" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:4.5" Value="{x:Static Visibility.Visible}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ </Storyboard>
|
|
|
+ </VisualTransition>
|
|
|
+ <VisualTransition To="DownToUpper">
|
|
|
+ <Storyboard FillBehavior="HoldEnd" SpeedRatio="18">
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:4.5" Value="{x:Static Visibility.Hidden}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2Down" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:4.5" Value="{x:Static Visibility.Visible}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ </Storyboard>
|
|
|
+ </VisualTransition>
|
|
|
+ </VisualStateGroup.Transitions>
|
|
|
+
|
|
|
+ <VisualState Name="UpperToDown">
|
|
|
+ <Storyboard FillBehavior="HoldEnd">
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Hidden}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2Down" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ </Storyboard>
|
|
|
+ </VisualState>
|
|
|
+ <VisualState Name="DownToUpper">
|
|
|
+ <Storyboard FillBehavior="HoldEnd">
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="armGripper2Down" Storyboard.TargetProperty="Visibility">
|
|
|
+ <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Hidden}"/>
|
|
|
+ </ObjectAnimationUsingKeyFrames>
|
|
|
+ </Storyboard>
|
|
|
+ </VisualState>
|
|
|
+ </VisualStateGroup>
|
|
|
+
|
|
|
<VisualStateGroup Name="RobotXActions">
|
|
|
<VisualStateGroup.Transitions>
|
|
|
<VisualTransition To="Extend">
|
|
@@ -1066,6 +1109,10 @@
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:9"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:9"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualTransition>
|
|
|
<VisualTransition To="Retract">
|
|
@@ -1087,6 +1134,10 @@
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:9"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:9"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
|
|
|
</Storyboard>
|
|
|
</VisualTransition>
|
|
@@ -1108,6 +1159,12 @@
|
|
|
<LinearDoubleKeyFrame Value="-30" KeyTime="0:0:6"/>
|
|
|
<LinearDoubleKeyFrame Value="-90" KeyTime="0:0:9"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
+ <LinearDoubleKeyFrame Value="30" KeyTime="0:0:3"/>
|
|
|
+ <LinearDoubleKeyFrame Value="-30" KeyTime="0:0:6"/>
|
|
|
+ <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:9"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualTransition>
|
|
|
<VisualTransition To="Retract2">
|
|
@@ -1128,6 +1185,12 @@
|
|
|
<LinearDoubleKeyFrame Value="-30" KeyTime="0:0:3"/>
|
|
|
<LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:9"/>
|
|
|
+ <LinearDoubleKeyFrame Value="30" KeyTime="0:0:6"/>
|
|
|
+ <LinearDoubleKeyFrame Value="-30" KeyTime="0:0:3"/>
|
|
|
+ <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualTransition>
|
|
|
</VisualStateGroup.Transitions>
|
|
@@ -1147,6 +1210,9 @@
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2RotateAct" Storyboard.TargetProperty="Angle">
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualState>
|
|
|
<VisualState Name="Extend">
|
|
@@ -1160,6 +1226,9 @@
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2RotateAct" Storyboard.TargetProperty="Angle">
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualState>
|
|
|
<VisualState Name="Retract">
|
|
@@ -1173,6 +1242,9 @@
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2RotateAct" Storyboard.TargetProperty="Angle">
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualState>
|
|
|
<VisualState Name="Extend2">
|
|
@@ -1186,6 +1258,9 @@
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2RotateAct" Storyboard.TargetProperty="Angle">
|
|
|
<LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="-90" KeyTime="0:0:0"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualState>
|
|
|
<VisualState Name="Retract2">
|
|
@@ -1199,6 +1274,9 @@
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2RotateAct" Storyboard.TargetProperty="Angle">
|
|
|
<LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="grip2DownRotateAct" Storyboard.TargetProperty="Angle">
|
|
|
+ <LinearDoubleKeyFrame Value="90" KeyTime="0:0:0"/>
|
|
|
+ </DoubleAnimationUsingKeyFrames>
|
|
|
</Storyboard>
|
|
|
</VisualState>
|
|
|
|
|
@@ -1601,13 +1679,27 @@
|
|
|
|
|
|
<Canvas x:Name="armGripper2" Height="120" Width="50" Canvas.Left="-30" Canvas.Top="-100" RenderTransformOrigin="0.5,1">
|
|
|
<Canvas.RenderTransform>
|
|
|
- <RotateTransform x:Name="grip2RotateAct"/>
|
|
|
+ <TransformGroup>
|
|
|
+ <RotateTransform x:Name="grip2RotateAct"/>
|
|
|
+ </TransformGroup>
|
|
|
</Canvas.RenderTransform>
|
|
|
<Image Width="48" Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/atmrobot/hand1.png"></Image>
|
|
|
<Viewbox Canvas.Left="-20" Canvas.Top="-30" Width="85" Height="85">
|
|
|
<userControls:WaferCtrl WaferData="{Binding Robot2Wafer,RelativeSource={RelativeSource TemplatedParent}}"/>
|
|
|
</Viewbox>
|
|
|
</Canvas>
|
|
|
+
|
|
|
+ <Canvas x:Name="armGripper2Down" Height="120" Width="50" Canvas.Left="-30" Canvas.Top="-100" RenderTransformOrigin="0.5,1">
|
|
|
+ <Canvas.RenderTransform>
|
|
|
+ <TransformGroup>
|
|
|
+ <RotateTransform x:Name="grip2DownRotateAct"/>
|
|
|
+ </TransformGroup>
|
|
|
+ </Canvas.RenderTransform>
|
|
|
+ <Image Width="48" Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/atmrobot/hand1.png" Panel.ZIndex="1"></Image>
|
|
|
+ <Viewbox Canvas.Left="-20" Canvas.Top="-30" Width="85" Height="85" Panel.ZIndex="0">
|
|
|
+ <userControls:WaferCtrl WaferData="{Binding Robot2Wafer,RelativeSource={RelativeSource TemplatedParent}}"/>
|
|
|
+ </Viewbox>
|
|
|
+ </Canvas>
|
|
|
</Canvas>
|
|
|
</Canvas>
|
|
|
</Canvas>
|