LoadLockLeft.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <UserControl x:Class="Venus_Themes.UserControls.LoadLockLeft"
  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:local="clr-namespace:Venus_Themes.UserControls"
  7. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800" Name="LeftLoadLock" Opacity="0.9">
  10. <UserControl.Resources>
  11. <Style TargetType="Rectangle" x:Key="doorAnimation">
  12. <Setter Property="Width" Value="190"/>
  13. <Style.Triggers>
  14. <DataTrigger Binding="{Binding ElementName=LeftLoadLock,Path=DoorIsOpen}" Value="True">
  15. <DataTrigger.EnterActions>
  16. <BeginStoryboard>
  17. <Storyboard>
  18. <DoubleAnimation Storyboard.TargetProperty="Width" To="35" Duration="0:0:1"/>
  19. </Storyboard>
  20. </BeginStoryboard>
  21. </DataTrigger.EnterActions>
  22. <DataTrigger.ExitActions>
  23. <BeginStoryboard>
  24. <Storyboard>
  25. <DoubleAnimation Storyboard.TargetProperty="Width" To="190" Duration="0:0:1"/>
  26. </Storyboard>
  27. </BeginStoryboard>
  28. </DataTrigger.ExitActions>
  29. </DataTrigger>
  30. </Style.Triggers>
  31. </Style>
  32. <Style TargetType="Rectangle" x:Key="door2Animation">
  33. <Setter Property="Width" Value="142"/>
  34. <Style.Triggers>
  35. <DataTrigger Binding="{Binding ElementName=LeftLoadLock,Path=Door2IsOpen}" Value="True">
  36. <DataTrigger.EnterActions>
  37. <BeginStoryboard>
  38. <Storyboard>
  39. <DoubleAnimation Storyboard.TargetProperty="Width" To="30" Duration="0:0:1"/>
  40. </Storyboard>
  41. </BeginStoryboard>
  42. </DataTrigger.EnterActions>
  43. <DataTrigger.ExitActions>
  44. <BeginStoryboard>
  45. <Storyboard>
  46. <DoubleAnimation Storyboard.TargetProperty="Width" To="142" Duration="0:0:1"/>
  47. </Storyboard>
  48. </BeginStoryboard>
  49. </DataTrigger.ExitActions>
  50. </DataTrigger>
  51. </Style.Triggers>
  52. </Style>
  53. </UserControl.Resources>
  54. <Viewbox Stretch="Fill" >
  55. <Canvas Width="200" Height="200">
  56. <Polygon Stroke="Black" StrokeThickness="2" Points="0,200 0,100 36,0 200,90 140,200">
  57. <Polygon.Fill>
  58. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  59. <GradientStop Color="Silver" Offset="0.0" />
  60. <GradientStop Color="White" Offset="0.5" />
  61. <GradientStop Color="Silver" Offset="1" />
  62. </LinearGradientBrush>
  63. </Polygon.Fill>
  64. </Polygon>
  65. <Rectangle Fill="Silver" Width="190" VerticalAlignment="Top" Height="20" Canvas.Top="28" Canvas.Left="28">
  66. <Rectangle.RenderTransform>
  67. <RotateTransform Angle="30" CenterX="95" CenterY="10"/>
  68. </Rectangle.RenderTransform>
  69. </Rectangle>
  70. <Rectangle Style="{StaticResource doorAnimation}" Fill="DimGray" VerticalAlignment="Top" Height="20" Canvas.Top="28" Canvas.Left="28">
  71. <Rectangle.RenderTransform>
  72. <RotateTransform Angle="30" CenterX="95" CenterY="10"/>
  73. </Rectangle.RenderTransform>
  74. </Rectangle>
  75. <Rectangle Style="{StaticResource doorAnimation}" Fill="DimGray" VerticalAlignment="Top" Height="20" Canvas.Top="28" Canvas.Left="28">
  76. <Rectangle.RenderTransform>
  77. <RotateTransform Angle="210" CenterX="95" CenterY="10"/>
  78. </Rectangle.RenderTransform>
  79. </Rectangle>
  80. <Path Stroke="Black" Canvas.Top="15" Canvas.Left="-34">
  81. <Path.Data>
  82. <GeometryGroup>
  83. <!--<PathGeometry Figures="M 200,100 A 80,80 1 1 1 200,99.9"/>-->
  84. <!--<PathGeometry Figures="M 190,100 A 70,70 1 1 1 190,99.9" />-->
  85. <PathGeometry Figures="M 180,100 A 60,60 1 1 1 180,99.9" />
  86. <PathGeometry Figures="M 170,100 A 50,50 1 1 1 170,99.9" />
  87. <PathGeometry Figures="M 160,100 A 40,40 1 1 1 160,99.9" />
  88. <PathGeometry Figures="M 150,100 A 30,30 1 1 1 150,99.9" />
  89. </GeometryGroup>
  90. </Path.Data>
  91. </Path>
  92. <Viewbox Width="120" Height="120" Canvas.Left="26" Canvas.Top="55">
  93. <ctrl:Slot ViewType="Top" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}"
  94. DataContext="{Binding ElementName=LeftLoadLock, Path=RobotWafer}" HorizontalAlignment="Center" VerticalAlignment="Center">
  95. </ctrl:Slot>
  96. </Viewbox>
  97. <Rectangle Fill="Silver" Width="142" VerticalAlignment="Top" Height="20" Canvas.Top="200" Canvas.Left="-1" Visibility="{Binding ElementName=LeftLoadLock,Path=Door2IsVisibility}"/>
  98. <Rectangle Fill="DimGray" Style="{StaticResource door2Animation}" VerticalAlignment="Top" Height="20" Canvas.Top="200" Canvas.Left="-1" Visibility="{Binding ElementName=LeftLoadLock,Path=Door2IsVisibility}"/>
  99. </Canvas>
  100. </Viewbox>
  101. </UserControl>