ChamberWithHeater.xaml 21 KB

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