FoupTopView3.xaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.FoupTopView3"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:myCtrl="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls"
  7. mc:Ignorable="d" Width="73" Height="66"
  8. d:DesignHeight="120" d:DesignWidth="100">
  9. <UserControl.Resources>
  10. <Storyboard x:Key="FoupLoaded">
  11. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" >
  12. <EasingDoubleKeyFrame KeyTime="0" Value="20"/>
  13. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
  14. </DoubleAnimationUsingKeyFrames>
  15. </Storyboard>
  16. <Storyboard x:Key="FoupUnloaded">
  17. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" >
  18. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  19. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="20"/>
  20. </DoubleAnimationUsingKeyFrames>
  21. </Storyboard>
  22. <Style TargetType="{x:Type Image}" x:Key="LP_Animation" >
  23. <Style.Triggers>
  24. <DataTrigger Binding="{Binding IsFoupLoaded, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="true">
  25. <DataTrigger.EnterActions>
  26. <BeginStoryboard Storyboard="{StaticResource FoupLoaded}"/>
  27. </DataTrigger.EnterActions>
  28. <DataTrigger.ExitActions>
  29. <BeginStoryboard Storyboard="{StaticResource FoupUnloaded}"/>
  30. </DataTrigger.ExitActions>
  31. </DataTrigger>
  32. </Style.Triggers>
  33. </Style>
  34. </UserControl.Resources>
  35. <Canvas x:Name="canvas" Width="75" Height="100" >
  36. <Canvas.ContextMenu>
  37. <ContextMenu>
  38. <MenuItem Header="Home" Click="Home"/>
  39. <MenuItem Header="Reset" Click="Reset" />
  40. <MenuItem Header="Abort" Click="Abort" />
  41. <MenuItem Header="Load" Click="Load"/>
  42. <MenuItem Header="Unload" Click="Unload"/>
  43. <MenuItem Header="Read Carrier ID" Click="ReadCarrierID"/>
  44. <MenuItem Header="Clamp" Click="Clamp" />
  45. <MenuItem Header="Unclamp" Click="Unclamp"/>
  46. <MenuItem Header="Dock" Click="Dock" />
  47. <MenuItem Header="Undock" Click="Undock"/>
  48. <MenuItem Header="Open Door" Click="OpenDoor"/>
  49. <MenuItem Header="Close Door" Click="CloseDoor" />
  50. <MenuItem Header="Map" Click="Map"/>
  51. </ContextMenu>
  52. </Canvas.ContextMenu>
  53. <Image Style="{StaticResource LP_Animation}" Source="pack://application:,,,/MECF.Framework.UI.Client;component/Resources/Images/foupTopView3.png" Width="79" Height="71" Canvas.Left="-2" Canvas.Top="16"/>
  54. <Canvas.RenderTransform>
  55. <TranslateTransform Y="{Binding CanvasYPosition}">
  56. </TranslateTransform>
  57. </Canvas.RenderTransform>
  58. </Canvas>
  59. </UserControl>