FOUPTopView2.xaml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <UserControl x:Class="MECF.Framework.UI.Client.ClientControls.UnitControls.FOUPTopView2"
  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. mc:Ignorable="d">
  7. <UserControl.Resources>
  8. <Storyboard x:Key="FOUPDoor_Close">
  9. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" >
  10. <EasingDoubleKeyFrame KeyTime="0" Value="10"/>
  11. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="43.5"/>
  12. </DoubleAnimationUsingKeyFrames>
  13. </Storyboard>
  14. <Storyboard x:Key="FOUPDoor_Open">
  15. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)">
  16. <EasingDoubleKeyFrame KeyTime="0" Value="43.5"/>
  17. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="10"/>
  18. </DoubleAnimationUsingKeyFrames>
  19. </Storyboard>
  20. <Storyboard x:Key="body_up">
  21. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" >
  22. <EasingThicknessKeyFrame KeyTime="0" Value="2,10,2,0"/>
  23. <EasingThicknessKeyFrame KeyTime="0:0:0.2" Value="2,0,2,0"/>
  24. </ThicknessAnimationUsingKeyFrames>
  25. </Storyboard>
  26. <Storyboard x:Key="body_down">
  27. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)">
  28. <EasingThicknessKeyFrame KeyTime="0" Value="2,0,2,0"/>
  29. <EasingThicknessKeyFrame KeyTime="0:0:0.2" Value="2,10,2,0"/>
  30. </ThicknessAnimationUsingKeyFrames>
  31. </Storyboard>
  32. <Style TargetType="{x:Type Rectangle}" x:Key="Door_Animation" >
  33. <Style.Triggers>
  34. <DataTrigger Binding="{Binding DoorState}" Value="Open">
  35. <DataTrigger.EnterActions>
  36. <BeginStoryboard Storyboard="{StaticResource FOUPDoor_Open}"/>
  37. </DataTrigger.EnterActions>
  38. <DataTrigger.ExitActions>
  39. <BeginStoryboard Storyboard="{StaticResource FOUPDoor_Close}"/>
  40. </DataTrigger.ExitActions>
  41. </DataTrigger>
  42. </Style.Triggers>
  43. </Style>
  44. </UserControl.Resources>
  45. <Grid x:Name="root" Width="85" Height="100">
  46. <Border BorderBrush="Black" BorderThickness="1" CornerRadius="0,0,5,5">
  47. <Border BorderThickness="1,0,1,1" Margin="4,-1,4,4" CornerRadius="0,0,4,4" Background="#FFB4B4B4" BorderBrush="#FF7C7C7C">
  48. <Grid x:Name="FOUP_Body" >
  49. <Grid.Style>
  50. <Style>
  51. <Setter Property="Grid.Visibility" Value="Collapsed" />
  52. <Style.Triggers>
  53. <DataTrigger Binding="{Binding CassetteState}" Value="Normal">
  54. <Setter Property="Grid.Visibility" Value="Visible" />
  55. </DataTrigger>
  56. </Style.Triggers>
  57. </Style>
  58. </Grid.Style>
  59. <Grid.ContextMenu>
  60. <ContextMenu>
  61. <MenuItem Header="Home" Click="MenuItem_Click" Tag="LoadportHome" />
  62. <MenuItem Header="Abort" Click="MenuItem_Click" Tag="LoadportAbort" />
  63. <MenuItem Header="Stop" Click="MenuItem_Click" Tag="LoadportStop" />
  64. <Separator />
  65. <MenuItem Header="Clamp" Click="MenuItem_Click" Tag="LoadportClamp" />
  66. <MenuItem Header="Unlamp" Click="MenuItem_Click" Tag="LoadportUnlamp" />
  67. <MenuItem Header="Load" Click="MenuItem_Click" Tag="LoadportLoad" />
  68. <MenuItem Header="Unload" Click="MenuItem_Click" Tag="LoadportUnload" />
  69. <MenuItem Header="Open Door" Click="MenuItem_Click" Tag="LoadportOpenDoor" />
  70. <MenuItem Header="Close Door" Click="MenuItem_Click" Tag="LoadportCloseDoor" />
  71. <MenuItem Header="Dock" Click="MenuItem_Click" Tag="LoadportDock" />
  72. <MenuItem Header="Undock" Click="MenuItem_Click" Tag="LoadportUndock" />
  73. <MenuItem Header="Map" Click="MenuItem_Click" Tag="LoadportMap" />
  74. </ContextMenu>
  75. </Grid.ContextMenu>
  76. <Rectangle Fill="#FFD8D8D8" Margin="4,0,4,4" Stroke="Black" RadiusY="5" RadiusX="5">
  77. <Rectangle.Effect>
  78. <BlurEffect Radius="25"/>
  79. </Rectangle.Effect>
  80. </Rectangle>
  81. <Grid x:Name="FOUP_Body_Inner" Margin="2,10,2,0" VerticalAlignment="Top">
  82. <Rectangle Fill="#FF3484B6" Height="6" VerticalAlignment="Top"/>
  83. <Path Data="M0,0 L65,0 65,53.6665 65,54 64.98787,54 64.957711,54.30118 C64.087258,60.817829 49.88834,66 32.5,66 15.11166,66 0.91274095,60.817829 0.042288512,54.30118 L0.012133257,54 0,54 0,53.6665 z" Fill="#FF72ADCC" Margin="2,5,2,0" VerticalAlignment="Top" Width="65" Height="66" Stroke="#FF4399C6"/>
  84. <Path Data="M0.5,0.5 L34.5,0.5 34.5,63.642655 33.637119,63.844716 C28.89949,64.896935 23.385284,65.5 17.5,65.5 11.614716,65.5 6.1005077,64.896935 1.3628788,63.844716 L0.5,63.642655 z" Fill="#FF7EB8D6" Margin="17,5,17,0" VerticalAlignment="Top" Stroke="#FF4399C6"/>
  85. <Grid.Style>
  86. <Style>
  87. <Style.Triggers>
  88. <DataTrigger Binding="{Binding DoorState}" Value="Open">
  89. <DataTrigger.EnterActions>
  90. <BeginStoryboard Storyboard="{StaticResource body_up}"/>
  91. </DataTrigger.EnterActions>
  92. <DataTrigger.ExitActions>
  93. <BeginStoryboard Storyboard="{StaticResource body_down}"/>
  94. </DataTrigger.ExitActions>
  95. </DataTrigger>
  96. </Style.Triggers>
  97. </Style>
  98. </Grid.Style>
  99. </Grid>
  100. <Rectangle Fill="#FFABABAB" HorizontalAlignment="Center" Height="10" Stroke="#FF838383" VerticalAlignment="Bottom" Width="45" RadiusX="1" RadiusY="1" Margin="0,0,0,2"/>
  101. </Grid>
  102. </Border>
  103. <Border.Style>
  104. <Style>
  105. <Setter Property="Border.Background" Value="Gray"/>
  106. </Style>
  107. </Border.Style>
  108. </Border>
  109. <Grid x:Name="FOUP_Door" Height="10" VerticalAlignment="Top" Margin="-1,0">
  110. <Rectangle x:Name="FOUPDoor_Left" Fill="Black" Style="{StaticResource Door_Animation}" HorizontalAlignment="Left" Width="43.5" Height="6" VerticalAlignment="Center"/>
  111. <Rectangle x:Name="FOUPDoor_Right" Fill="Black" Style="{StaticResource Door_Animation}" HorizontalAlignment="Right" Width="43.5" Height="6" VerticalAlignment="Center"/>
  112. <Rectangle HorizontalAlignment="Left" Stroke="#FF434343" Width="10">
  113. <Rectangle.Fill>
  114. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  115. <GradientStop Color="#FF4D4D4D" Offset="0"/>
  116. <GradientStop Color="#FFCCCCCC" Offset="1"/>
  117. </LinearGradientBrush>
  118. </Rectangle.Fill>
  119. </Rectangle>
  120. <Rectangle HorizontalAlignment="Right" Stroke="#FF434343" Width="10">
  121. <Rectangle.Fill>
  122. <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
  123. <GradientStop Color="#FF4D4D4D" Offset="0"/>
  124. <GradientStop Color="#FFCCCCCC" Offset="1"/>
  125. </LinearGradientBrush>
  126. </Rectangle.Fill>
  127. </Rectangle>
  128. </Grid>
  129. </Grid>
  130. </UserControl>