TMChamber.xaml 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <UserControl x:Class="Venus_Themes.UserControls.TMChamber"
  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="tmChamber" Opacity="0.9">
  10. <UserControl.Resources>
  11. <Style TargetType="Rectangle" x:Key="doorAnimation">
  12. <Setter Property="Width" Value="204"/>
  13. <Style.Triggers>
  14. <DataTrigger Binding="{Binding ElementName=tmChamber,Path=DoorIsOpen}" Value="True">
  15. <DataTrigger.EnterActions>
  16. <BeginStoryboard>
  17. <Storyboard>
  18. <DoubleAnimation Storyboard.TargetProperty="Width" To="40" Duration="0:0:1"/>
  19. </Storyboard>
  20. </BeginStoryboard>
  21. </DataTrigger.EnterActions>
  22. <DataTrigger.ExitActions>
  23. <BeginStoryboard>
  24. <Storyboard>
  25. <DoubleAnimation Storyboard.TargetProperty="Width" To="204" Duration="0:0:1"/>
  26. </Storyboard>
  27. </BeginStoryboard>
  28. </DataTrigger.ExitActions>
  29. </DataTrigger>
  30. </Style.Triggers>
  31. </Style>
  32. </UserControl.Resources>
  33. <Viewbox Stretch="Fill">
  34. <Viewbox.RenderTransform>
  35. <TransformGroup>
  36. <RotateTransform Angle="{Binding ElementName=tmChamber,Path=RotateTransformValue}"/>
  37. </TransformGroup>
  38. </Viewbox.RenderTransform>
  39. <Border>
  40. <Canvas Width="200" Height="200" Grid.Row="1">
  41. <TextBlock Text="{Binding ElementName=tmChamber,Path=Name}" Canvas.Top="-50" Canvas.Left="65" FontSize="30"/>
  42. <Polygon Stroke="Black" StrokeThickness="2" Points="00,200 0,0 200,0 200,200">
  43. <Polygon.Fill>
  44. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  45. <GradientStop Color="Silver" Offset="0.0" />
  46. <GradientStop Color="White" Offset="0.5" />
  47. <GradientStop Color="Silver" Offset="1" />
  48. </LinearGradientBrush>
  49. </Polygon.Fill>
  50. </Polygon>
  51. <Path Stroke="Gray" Canvas.Left="-20" StrokeThickness="2" >
  52. <Path.Data>
  53. <GeometryGroup>
  54. <!--<PathGeometry Figures="M 200,100 A 80,80 1 1 1 200,99.9"/>-->
  55. <PathGeometry Figures="M 190,100 A 70,70 1 1 1 190,99.9" />
  56. <PathGeometry Figures="M 180,100 A 60,60 1 1 1 180,99.9" />
  57. <PathGeometry Figures="M 170,100 A 50,50 1 1 1 170,99.9" />
  58. <PathGeometry Figures="M 160,100 A 40,40 1 1 1 160,99.9" />
  59. <PathGeometry Figures="M 150,100 A 30,30 1 1 1 150,99.9" />
  60. </GeometryGroup>
  61. </Path.Data>
  62. </Path>
  63. <Rectangle Fill="Silver" Width="204" VerticalAlignment="Top" Height="20" Canvas.Top="200" Canvas.Left="-2"/>
  64. <Rectangle Style="{StaticResource doorAnimation}" Fill="DimGray" VerticalAlignment="Top" Height="20" Canvas.Top="200" Canvas.Left="-2" Name="door1">
  65. </Rectangle>
  66. <Rectangle Style="{StaticResource doorAnimation}" Fill="DimGray" VerticalAlignment="Top" Height="20" Canvas.Top="200" Canvas.Left="-2" Name="door2">
  67. <Rectangle.RenderTransform >
  68. <RotateTransform CenterX="102" CenterY="10" Angle="180"/>
  69. </Rectangle.RenderTransform>
  70. </Rectangle>
  71. <Viewbox Width="120" Height="120" Canvas.Left="40" Canvas.Top="40">
  72. <ctrl:Slot ViewType="Top" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}"
  73. DataContext="{Binding ElementName=tmChamber, Path=RobotWafer}" HorizontalAlignment="Center" VerticalAlignment="Center">
  74. </ctrl:Slot>
  75. </Viewbox>
  76. </Canvas>
  77. </Border>
  78. </Viewbox>
  79. </UserControl>