Chamber.xaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <UserControl x:Class="Venus_Themes.UserControls.Chamber"
  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="chamber">
  9. <UserControl.Resources>
  10. <Storyboard x:Key="SlitValve_Open">
  11. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
  12. <EasingDoubleKeyFrame KeyTime="0" Value="75"/>
  13. <EasingDoubleKeyFrame KeyTime="0:0:1" Value="42"/>
  14. </DoubleAnimationUsingKeyFrames>
  15. </Storyboard>
  16. <Storyboard x:Key="SlitValve_Close">
  17. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
  18. <EasingDoubleKeyFrame KeyTime="0" Value="42"/>
  19. <EasingDoubleKeyFrame KeyTime="0:0:1" Value="75"/>
  20. </DoubleAnimationUsingKeyFrames>
  21. </Storyboard>
  22. <Style TargetType="{x:Type Rectangle}" x:Key="SlitValve_Animation" >
  23. <Style.Triggers>
  24. <DataTrigger Binding="{Binding ElementName=chamber,Path=IsOpenSlitDoor}" Value="true">
  25. <DataTrigger.EnterActions>
  26. <BeginStoryboard Storyboard="{StaticResource SlitValve_Open}"/>
  27. </DataTrigger.EnterActions>
  28. <DataTrigger.ExitActions>
  29. <BeginStoryboard Storyboard="{StaticResource SlitValve_Close}"/>
  30. </DataTrigger.ExitActions>
  31. </DataTrigger>
  32. </Style.Triggers>
  33. </Style>
  34. </UserControl.Resources>
  35. <Canvas >
  36. <Grid Width="240" Height="190" Canvas.Top="80">
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="160"/>
  39. <RowDefinition />
  40. </Grid.RowDefinitions>
  41. <Path Data="M0.5,0.5 L33.5,0.5 33.5,17.5 206.5,17.5 206.5,0.5 239.5,0.5 239.5,149.5 0.5,149.5 z" Stroke="#FF747474" Margin="0,10,0,0">
  42. <Path.Fill>
  43. <LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
  44. <GradientStop Color="#FF8F8F8F" Offset="0"/>
  45. <GradientStop Color="#FF9B9B9B" Offset="1"/>
  46. <GradientStop Color="#FEF1ECEC" Offset="0.15"/>
  47. <GradientStop Color="#FEC0C0C0" Offset="0.38"/>
  48. <GradientStop Color="#FEB4B4B4" Offset="0.5"/>
  49. <GradientStop Color="#FEE5E5E5" Offset="0.7"/>
  50. <GradientStop Color="#FFBABABA" Offset="0.85"/>
  51. <GradientStop Color="#FFE5E5E5" Offset="0.9"/>
  52. </LinearGradientBrush>
  53. </Path.Fill>
  54. </Path>
  55. <Rectangle Stroke="#FF747474" Margin="8,18">
  56. <Rectangle.Fill>
  57. <LinearGradientBrush EndPoint="0.243,1" StartPoint="0.757,0">
  58. <GradientStop Color="#FFE0DEDE" Offset="0"/>
  59. <GradientStop Color="#FFE2E2E2" Offset="1"/>
  60. <GradientStop Color="#FEFFFFFF" Offset="0.55"/>
  61. <GradientStop Color="#FFEFEFEF" Offset="0.75"/>
  62. </LinearGradientBrush>
  63. </Rectangle.Fill>
  64. </Rectangle>
  65. <Rectangle x:Name="BG_Status" Margin="9,19" Visibility="{Binding BiasRfPowerOnChamberVisibility}" >
  66. <Rectangle.ContextMenu >
  67. <ContextMenu>
  68. <MenuItem Header="Create Wafer" Click="CreateWafer_Click" IsChecked="{Binding IsHasWafer}" IsEnabled="{Binding IsHasWafer,Converter={StaticResource BoolToBool}}"/>
  69. <MenuItem Header="Delete Wafer" Click="DeleteWafer_Click" IsChecked="{Binding IsHasWafer,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding IsHasWafer}"/>
  70. </ContextMenu>
  71. </Rectangle.ContextMenu>
  72. <Rectangle.Style>
  73. <Style>
  74. <Setter Property="Rectangle.Fill" Value="WhiteSmoke"/>
  75. <Style.Triggers>
  76. <DataTrigger Binding="{Binding ElementName=chamber,Path=IsBRFOn}" Value="True">
  77. <Setter Property="Rectangle.Fill" Value="#FFFF9292"/>
  78. </DataTrigger>
  79. </Style.Triggers>
  80. </Style>
  81. </Rectangle.Style>
  82. </Rectangle>
  83. <Rectangle Stroke="#FF747474" Height="11" VerticalAlignment="Bottom" Margin="12,0,12,8">
  84. <Rectangle.Fill>
  85. <LinearGradientBrush EndPoint="0.243,1" StartPoint="0.757,0">
  86. <GradientStop Color="#FFE0DEDE" Offset="0"/>
  87. <GradientStop Color="#FFE2E2E2" Offset="1"/>
  88. <GradientStop Color="#FEFFFFFF" Offset="0.55"/>
  89. <GradientStop Color="#FFEFEFEF" Offset="0.75"/>
  90. </LinearGradientBrush>
  91. </Rectangle.Fill>
  92. </Rectangle>
  93. <Grid x:Name="Cover" Width="180" Height="18" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,2,0,0" RenderTransformOrigin="1,0.4444">
  94. <Grid.RenderTransform>
  95. <TransformGroup>
  96. <ScaleTransform/>
  97. <SkewTransform/>
  98. <RotateTransform/>
  99. <TranslateTransform/>
  100. </TransformGroup>
  101. </Grid.RenderTransform>
  102. <Grid.Resources>
  103. <Storyboard x:Key="CoverOpen">
  104. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
  105. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  106. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="20"/>
  107. </DoubleAnimationUsingKeyFrames>
  108. </Storyboard>
  109. <Storyboard x:Key="CoverClose">
  110. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
  111. <EasingDoubleKeyFrame KeyTime="0" Value="20"/>
  112. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
  113. </DoubleAnimationUsingKeyFrames>
  114. </Storyboard>
  115. </Grid.Resources>
  116. <Grid.Style>
  117. <Style>
  118. <Style.Triggers>
  119. <DataTrigger Binding="{Binding ElementName=chamber,Path=IsLidOpen}" Value="true">
  120. <DataTrigger.EnterActions>
  121. <BeginStoryboard Storyboard="{StaticResource CoverOpen}"/>
  122. </DataTrigger.EnterActions>
  123. <DataTrigger.ExitActions>
  124. <BeginStoryboard Storyboard="{StaticResource CoverClose}"/>
  125. </DataTrigger.ExitActions>
  126. </DataTrigger>
  127. </Style.Triggers>
  128. </Style>
  129. </Grid.Style>
  130. <Rectangle Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Bottom" Fill="{DynamicResource Lid_BG}" Stroke="{DynamicResource Lid_BD}" Width="172" Height="12"/>
  131. <Rectangle Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Top" Fill="{DynamicResource Lid_BG}" Stroke="{DynamicResource Lid_BD}" Width="180" Height="8"/>
  132. <Line X1="35" Y1="-80" X2="120" Y2="-90" Stroke="#B87333" StrokeThickness="5"/>
  133. <Line X1="35" Y1="-60" X2="145" Y2="-70" Stroke="#B87333" StrokeThickness="5"/>
  134. <Line X1="35" Y1="-40" X2="145" Y2="-50" Stroke="#B87333" StrokeThickness="5"/>
  135. <Line X1="35" Y1="-20" X2="145" Y2="-30" Stroke="#B87333" StrokeThickness="5"/>
  136. <Rectangle Stroke="DimGray" Fill="WhiteSmoke" Margin="130,-101,42,0" Width="8" VerticalAlignment="Top" Height="102" />
  137. <Rectangle Stroke="DimGray" Fill="WhiteSmoke" Margin="42,-101,130,0" Width="8" VerticalAlignment="Top" Height="102" />
  138. <Rectangle Fill="DimGray" Margin="42,-108,42,0" VerticalAlignment="Top" Height="8" />
  139. <Rectangle Fill="White" Margin="50,-101,50,0" Width="80" Height="118" />
  140. <Rectangle x:Name="BG_Status1" Margin="50,-101,50,0" Width="80" Height="118" Visibility="{Binding RfPowerOnChamberVisibility}" >
  141. <Rectangle.Style>
  142. <Style>
  143. <Setter Property="Rectangle.Fill" Value="WhiteSmoke"/>
  144. <Style.Triggers>
  145. <DataTrigger Binding="{Binding ElementName=chamber,Path=IsSRFOn}" Value="True">
  146. <Setter Property="Rectangle.Fill" Value="#FFFF9292"/>
  147. </DataTrigger>
  148. </Style.Triggers>
  149. </Style>
  150. </Rectangle.Style>
  151. </Rectangle>
  152. <Rectangle Stroke="#FF000000" Width="80" Height="10" Margin="0,8,0,0" StrokeThickness="1" StrokeDashArray="4 2" SnapsToDevicePixels="True"/>
  153. <Rectangle Stroke="#FF000000" Width="80" Height="9" Margin="0,-10,0,0" StrokeThickness="1" StrokeDashArray="4 2" SnapsToDevicePixels="True"/>
  154. <Line X1="35" Y1="-40" X2="145" Y2="-30" Stroke="#B87333" StrokeThickness="5"/>
  155. <Line X1="35" Y1="-60" X2="145" Y2="-50" Stroke="#B87333" StrokeThickness="5"/>
  156. <Line X1="35" Y1="-80" X2="145" Y2="-70" Stroke="#B87333" StrokeThickness="5"/>
  157. </Grid>
  158. <Grid Grid.RowSpan="2" Width="160" Height="167" VerticalAlignment="Bottom" Margin="0,0,0,2">
  159. <Rectangle Height="12" Stroke="Gray" VerticalAlignment="Top" Width="150" Margin="0,98,0,0">
  160. <Rectangle.Fill>
  161. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  162. <GradientStop Color="#FFABABAB" Offset="0"/>
  163. <GradientStop Color="#FFDADADA" Offset="1"/>
  164. </LinearGradientBrush>
  165. </Rectangle.Fill>
  166. </Rectangle>
  167. <Rectangle Height="12" Margin="0,109,0,0" Stroke="Gray" VerticalAlignment="Top" Width="160">
  168. <Rectangle.Fill>
  169. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  170. <GradientStop Color="#FFABABAB" Offset="0"/>
  171. <GradientStop Color="#FFDADADA" Offset="1"/>
  172. </LinearGradientBrush>
  173. </Rectangle.Fill>
  174. </Rectangle>
  175. <!--4寸 guide pin-->
  176. <Grid x:Name="Bottom_LiftPin" Height="75" VerticalAlignment="Bottom" Margin="0,0,0,0" >
  177. <Grid.Resources>
  178. <Storyboard x:Key="BottomPinUp">
  179. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" >
  180. <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,0"/>
  181. <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,15"/>
  182. </ThicknessAnimationUsingKeyFrames>
  183. </Storyboard>
  184. <Storyboard x:Key="BottomPinDown">
  185. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" >
  186. <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,15"/>
  187. <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,0"/>
  188. </ThicknessAnimationUsingKeyFrames>
  189. </Storyboard>
  190. </Grid.Resources>
  191. <Grid.Style>
  192. <Style>
  193. <Style.Triggers>
  194. <DataTrigger Binding="{Binding IsLowerPinUp}" Value="true">
  195. <DataTrigger.EnterActions>
  196. <BeginStoryboard Storyboard="{StaticResource BottomPinUp}"/>
  197. </DataTrigger.EnterActions>
  198. <DataTrigger.ExitActions>
  199. <BeginStoryboard Storyboard="{StaticResource BottomPinDown}"/>
  200. </DataTrigger.ExitActions>
  201. </DataTrigger>
  202. </Style.Triggers>
  203. </Style>
  204. </Grid.Style>
  205. <!--<Rectangle HorizontalAlignment="Left" Fill="{DynamicResource Lid_BG1}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="10,6,0,4"/>-->
  206. <!--<Rectangle HorizontalAlignment="Right" Fill="{DynamicResource Lid_BG1}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="0,6,10,4"/>-->
  207. <!--<Rectangle Stroke="{DynamicResource Lid_BD}" Fill="{DynamicResource Lid_BG1}" StrokeThickness="1" VerticalAlignment="Bottom" Height="8" Margin="5,0"/>-->
  208. </Grid>
  209. <!--3寸 guide pin-->
  210. <Grid x:Name="Middle_LiftPin" Width="120" Height="63" VerticalAlignment="Bottom" Margin="0,0,0,12" >
  211. <Grid.Resources>
  212. <Storyboard x:Key="MidPinUp">
  213. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" >
  214. <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,12"/>
  215. <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,27"/>
  216. </ThicknessAnimationUsingKeyFrames>
  217. </Storyboard>
  218. <Storyboard x:Key="MidPinDown">
  219. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" >
  220. <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,27"/>
  221. <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,12"/>
  222. </ThicknessAnimationUsingKeyFrames>
  223. </Storyboard>
  224. </Grid.Resources>
  225. <Grid.Style>
  226. <Style>
  227. <Style.Triggers>
  228. <DataTrigger Binding="{Binding IsUpperPinUp}" Value="true">
  229. <DataTrigger.EnterActions>
  230. <BeginStoryboard Storyboard="{StaticResource MidPinUp}"/>
  231. </DataTrigger.EnterActions>
  232. <DataTrigger.ExitActions>
  233. <BeginStoryboard Storyboard="{StaticResource MidPinDown}"/>
  234. </DataTrigger.ExitActions>
  235. </DataTrigger>
  236. </Style.Triggers>
  237. </Style>
  238. </Grid.Style>
  239. <!--<Rectangle HorizontalAlignment="Left" Fill="{DynamicResource Lid_BG2}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="10,6,0,4"/>
  240. <Rectangle HorizontalAlignment="Right" Fill="{DynamicResource Lid_BG2}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="0,6,10,4"/>-->
  241. <!--<Rectangle Stroke="{DynamicResource Lid_BD}" Fill="{DynamicResource Lid_BG2}" StrokeThickness="1" VerticalAlignment="Bottom" Height="8" Margin="5,0"/>-->
  242. </Grid>
  243. <!--lift pin-->
  244. <Grid x:Name="Top_LiftPin" Height="51" VerticalAlignment="Bottom" Margin="0,0,0,28" >
  245. <Grid.Resources>
  246. <Storyboard x:Key="TopPinUp">
  247. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" >
  248. <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,28"/>
  249. <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,54"/>
  250. </ThicknessAnimationUsingKeyFrames>
  251. </Storyboard>
  252. <Storyboard x:Key="TopPinDown">
  253. <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" >
  254. <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,54"/>
  255. <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,28"/>
  256. </ThicknessAnimationUsingKeyFrames>
  257. </Storyboard>
  258. </Grid.Resources>
  259. <Grid.Style>
  260. <Style>
  261. <Style.Triggers>
  262. <DataTrigger Binding="{Binding ElementName=chamber,Path=IsLiftPinUp}" Value="true">
  263. <DataTrigger.EnterActions>
  264. <BeginStoryboard Storyboard="{StaticResource TopPinUp}"/>
  265. </DataTrigger.EnterActions>
  266. <DataTrigger.ExitActions>
  267. <BeginStoryboard Storyboard="{StaticResource TopPinDown}"/>
  268. </DataTrigger.ExitActions>
  269. </DataTrigger>
  270. </Style.Triggers>
  271. </Style>
  272. </Grid.Style>
  273. <Rectangle HorizontalAlignment="Left" Fill="{DynamicResource Lid_BG3}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="48,10,0,4"/>
  274. <Rectangle HorizontalAlignment="Right" Fill="{DynamicResource Lid_BG3}" Stroke="{DynamicResource Lid_BD}" Width="8" Margin="0,10,48,4"/>
  275. <Rectangle Stroke="{DynamicResource Lid_BD}" Fill="{DynamicResource Lid_BG3}" StrokeThickness="1" VerticalAlignment="Bottom" Height="8" Margin="5,0" Width="64" />
  276. <Rectangle HorizontalAlignment="Center" Margin="-100,0" Width="{Binding WaferLength}" Height="10" VerticalAlignment="Top"/>
  277. <TextBlock Text="{Binding ElementName=chamber,Path=WaferID}" Margin="0,-20,0,0" TextAlignment="Center"></TextBlock>
  278. <Border BorderThickness="1" BorderBrush="DarkGray" CornerRadius="4" VerticalAlignment="Top" Height="10" Margin="0,0,0,0" Width="140" Visibility="{Binding ElementName=chamber,Path=IsHasWafer,Converter={StaticResource bool2VisibilityConverter}}">
  279. <Border.Background>
  280. <RadialGradientBrush >
  281. <GradientStop Color="AliceBlue" Offset="0" />
  282. <!--<GradientStop Color="Silver" Offset="0.5" />-->
  283. <GradientStop Color="LightGreen" Offset="1" />
  284. </RadialGradientBrush>
  285. </Border.Background>
  286. </Border>
  287. </Grid>
  288. <Canvas Visibility="{Binding ElementName=chamber,Path=IsHasHeater,Converter={StaticResource bool2VisibilityConverter}}" Margin="29.5,100,0,0">
  289. <Rectangle HorizontalAlignment="Left" Fill="{DynamicResource Lid_BG3}" Stroke="Black" Width="100" Height="10"/>
  290. <Rectangle HorizontalAlignment="Left" Fill="{DynamicResource Lid_BG3}" Stroke="Black" Width="100" Height="10" Canvas.Top="10"/>
  291. <Rectangle HorizontalAlignment="Left" Fill="{DynamicResource Lid_BG3}" Stroke="Black" Width="30" Height="30" Canvas.Top="20" Canvas.Left="36"/>
  292. </Canvas>
  293. <!--左边slit door-->
  294. <Grid x:Name="Slit_valve" Margin="-41,-10,191,29" >
  295. <Rectangle x:Name="SlitValve_Top" Fill="DimGray" Width="8" VerticalAlignment="Top" Height="75" />
  296. <Rectangle x:Name="SlitValve_Bottom" Fill="DimGray" Width="8" VerticalAlignment="Bottom" Height="75" />
  297. </Grid>
  298. <!--slit door右边-->
  299. <Grid Margin="190,-10,-40,29" Cursor="Hand">
  300. <Grid.ContextMenu>
  301. <ContextMenu >
  302. <MenuItem Header="Open Door" Click="OpenDoor_Click" IsChecked="{Binding IsSlitDoorClosed,Converter={StaticResource BoolToBool}}" IsEnabled="{Binding IsSlitDoorClosed}"/>
  303. <MenuItem Header="Close Door" Click="CloseDoor_Click" IsChecked="{Binding IsSlitDoorClosed}" IsEnabled="{Binding IsSlitDoorClosed,Converter={StaticResource BoolToBool}}"/>
  304. </ContextMenu>
  305. </Grid.ContextMenu>
  306. <Rectangle Fill="DimGray" Style="{StaticResource SlitValve_Animation}" Width="8" VerticalAlignment="Top" Height="75" />
  307. <Rectangle Fill="DimGray" Style="{StaticResource SlitValve_Animation}" Width="8" VerticalAlignment="Bottom" Height="75" />
  308. </Grid>
  309. </Grid>
  310. </Grid>
  311. </Canvas>
  312. </UserControl>