NiceLeftLoadLock.xaml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <UserControl x:Class="Venus_Themes.UserControls.NiceLeftLoadLock"
  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. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800" x:Name="leftLoadLock">
  9. <UserControl.Resources>
  10. <Style TargetType="Rectangle" x:Key="doorAnimation">
  11. <Setter Property="Width" Value="200" />
  12. <Style.Triggers>
  13. <DataTrigger Binding="{Binding ElementName=leftLoadLock,Path=LLADoorIsOpen}" Value="True">
  14. <DataTrigger.EnterActions>
  15. <BeginStoryboard>
  16. <Storyboard>
  17. <DoubleAnimation Storyboard.TargetProperty="Width" To="40" Duration="0:0:1"/>
  18. </Storyboard>
  19. </BeginStoryboard>
  20. </DataTrigger.EnterActions>
  21. <DataTrigger.ExitActions>
  22. <BeginStoryboard>
  23. <Storyboard>
  24. <DoubleAnimation Storyboard.TargetProperty="Width" To="102" Duration="0:0:1"/>
  25. </Storyboard>
  26. </BeginStoryboard>
  27. </DataTrigger.ExitActions>
  28. </DataTrigger>
  29. </Style.Triggers>
  30. </Style>
  31. <Storyboard x:Key="WaterStoryboard">
  32. <PointAnimation Storyboard.TargetName="bs_Water" Storyboard.TargetProperty="Point1" From="15,-10" To="15,10" Duration="00:00:1" AutoReverse="True" RepeatBehavior="Forever"></PointAnimation>
  33. <PointAnimation Storyboard.TargetName="bs_Water" Storyboard.TargetProperty="Point2" From="35,10" To="35,-10" Duration="00:00:2.5" AutoReverse="True" RepeatBehavior="Forever"></PointAnimation>
  34. </Storyboard>
  35. <Storyboard x:Key="WaterWidth">
  36. <DoubleAnimation Storyboard.TargetName="rec_Water" Storyboard.TargetProperty="Height" Duration="0:0:0.3">
  37. </DoubleAnimation>
  38. </Storyboard>
  39. </UserControl.Resources>
  40. <Viewbox>
  41. <Canvas Width="800" Height="800" >
  42. <Image Width="288" Height="288" Source="pack://application:,,,/Venus_Themes;component/Resources/NiceUI/LeftLoadLock.png" Stretch="Uniform" >
  43. </Image>
  44. <Viewbox Stretch="Uniform" Width="220" Height="220" Canvas.Left="8" Canvas.Top="30">
  45. <Canvas UseLayoutRounding="False" Width="93.693" Height="112.5" HorizontalAlignment="Left" VerticalAlignment="Top">
  46. <Canvas Width="72.522" Height="72.521" Canvas.Left="10.473" Canvas.Top="28.781">
  47. <Path Data="F1M10.473,65.041C10.473,85.068,26.708,101.302,46.734,101.302L46.734,101.302C66.761,101.302,82.995,85.068,82.995,65.041L82.995,65.041C82.995,45.015,66.761,28.781,46.734,28.781L46.734,28.781C26.708,28.781,10.473,45.015,10.473,65.041" Stretch="Fill" Width="72.522" Height="72.521" Canvas.Left="0" Canvas.Top="0">
  48. <Path.Fill>
  49. <RadialGradientBrush Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5" GradientOrigin="0.5,0.5">
  50. <RadialGradientBrush.GradientStops>
  51. <GradientStop Color="#FFE5E2DF" Offset="0" />
  52. <GradientStop Color="#FFFFFFFF" Offset="0" />
  53. <GradientStop Color="#FFADAEB0" Offset="0.52" />
  54. <GradientStop Color="sc#1, 0.238698155, 0.250727534, 0.259264916" Offset="0.82" />
  55. <GradientStop Color="#FF454F52" Offset="1" />
  56. </RadialGradientBrush.GradientStops>
  57. </RadialGradientBrush>
  58. </Path.Fill>
  59. </Path>
  60. <Path Data="M46.8477,55.6938C52.0087,55.6938 56.1937,59.8788 56.1937,65.0398 56.1937,70.2008 52.0087,74.3858 46.8477,74.3858 41.6857,74.3858 37.5007,70.2008 37.5007,65.0398 37.5007,59.8788 41.6857,55.6938 46.8477,55.6938z" Stretch="Fill" Stroke="White" StrokeThickness="0.25" Width="18.943" Height="18.942" Canvas.Left="26.903" Canvas.Top="26.788" />
  61. </Canvas>
  62. <Canvas Width="5.857" Height="5.855" Canvas.Left="43.919" Canvas.Top="62.113">
  63. <Path Data="M46.8477,62.1133C48.4637,62.1133 49.7757,63.4243 49.7757,65.0413 49.7757,66.6583 48.4637,67.9683 46.8477,67.9683 45.2307,67.9683 43.9187,66.6583 43.9187,65.0413 43.9187,63.4243 45.2307,62.1133 46.8477,62.1133z" Stretch="Fill" Fill="LightBlue" Stroke="#FF4C4C4C" StrokeThickness="0.25" Width="6.107" Height="6.105" Canvas.Left="-0.125" Canvas.Top="-0.125" />
  64. </Canvas>
  65. <Canvas Width="56.555" Height="56.556" Canvas.Left="18.57" Canvas.Top="36.762">
  66. <Path Data="M46.8477,46.3472C57.1717,46.3472 65.5407,54.7172 65.5407,65.0412 65.5407,75.3652 57.1717,83.7342 46.8477,83.7342 36.5227,83.7342 28.1537,75.3652 28.1537,65.0412 28.1537,54.7172 36.5227,46.3472 46.8477,46.3472z" Stretch="Fill" Stroke="White" StrokeThickness="0.25" Width="37.637" Height="37.637" Canvas.Left="9.459" Canvas.Top="9.46" />
  67. <Path Data="M46.8477,36.8872C62.3957,36.8872 74.9997,49.4912 74.9997,65.0402 74.9997,80.5882 62.3957,93.1932 46.8477,93.1932 31.2987,93.1932 18.6947,80.5882 18.6947,65.0402 18.6947,49.4912 31.2987,36.8872 46.8477,36.8872z" Stretch="Fill" Stroke="White" StrokeThickness="0.25" Width="56.555" Height="56.556" />
  68. </Canvas>
  69. </Canvas>
  70. </Viewbox>
  71. <Viewbox Width="140" Height="140" Canvas.Top="88" Canvas.Left="48">
  72. <local:WaferCtrl WaferData="{Binding ElementName=leftLoadLock, Path=RobotWafer}" IsEnabled="False">
  73. </local:WaferCtrl>
  74. </Viewbox>
  75. <Canvas Canvas.Left="19" Canvas.Top="80">
  76. <Canvas.RenderTransform>
  77. <RotateTransform CenterX="100" CenterY="10" />
  78. </Canvas.RenderTransform>
  79. <Rectangle Fill="Silver" Width="200" VerticalAlignment="Top" Height="20" Canvas.Top="200" Canvas.Left="-2"/>
  80. <Rectangle Cursor="Hand" DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl,AncestorLevel=1}}" Style="{StaticResource doorAnimation}" Fill="{StaticResource doorColor3}" VerticalAlignment="Top" Height="20" Width="102" Canvas.Top="200" Canvas.Left="-2" >
  81. <Rectangle.ContextMenu >
  82. <ContextMenu>
  83. <MenuItem Header="Open Door" Click="OpenLLADoor_Click" IsChecked="{Binding LLADoorIsOpen}" IsEnabled="{Binding LLADoorIsOpen,Converter={StaticResource BoolToBool}}"/>
  84. <MenuItem Header="Close Door" Click="CloseLLADoor_Click" IsChecked="{Binding LLADoorIsOpen,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding LLADoorIsOpen}"/>
  85. </ContextMenu>
  86. </Rectangle.ContextMenu>
  87. </Rectangle>
  88. <Rectangle Cursor="Hand" DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl,AncestorLevel=1}}" Style="{StaticResource doorAnimation}" Fill="{StaticResource doorColor3}" VerticalAlignment="Top" Height="20" Width="102" Canvas.Top="200" Canvas.Left="-2" >
  89. <Rectangle.RenderTransform >
  90. <RotateTransform CenterX="102" CenterY="10" Angle="180"/>
  91. </Rectangle.RenderTransform>
  92. <Rectangle.ContextMenu >
  93. <ContextMenu>
  94. <MenuItem Header="Open Door" Click="OpenLLADoor_Click" IsChecked="{Binding LLADoorIsOpen}" IsEnabled="{Binding LLADoorIsOpen,Converter={StaticResource BoolToBool}}"/>
  95. <MenuItem Header="Close Door" Click="CloseLLADoor_Click" IsChecked="{Binding LLADoorIsOpen,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding LLADoorIsOpen}"/>
  96. </ContextMenu>
  97. </Rectangle.ContextMenu>
  98. </Rectangle>
  99. </Canvas>
  100. </Canvas>
  101. </Viewbox>
  102. </UserControl>