EFEMFrontView.xaml 6.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <UserControl x:Class="VirgoUI.Client.Models.Controls.EFEMFrontView"
  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:VirgoUI.Client.Models.Controls"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:cal="http://www.caliburn.org"
  9. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation" >
  10. <Grid x:Name="EFEM" HorizontalAlignment="Center" VerticalAlignment="Center">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition />
  14. </Grid.RowDefinitions>
  15. <TextBlock Text="Robot Side View" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center" HorizontalAlignment="Center">
  16. <TextBlock.Style>
  17. <Style>
  18. <Style.Triggers>
  19. <DataTrigger Binding="{Binding ShowTitle,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  20. <Setter Property="TextBlock.Visibility" Value="Collapsed" />
  21. </DataTrigger>
  22. </Style.Triggers>
  23. </Style>
  24. </TextBlock.Style>
  25. </TextBlock>
  26. <Border Grid.Row="1" BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="{DynamicResource FOUP_OuterBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Margin="0,5">
  27. <Grid>
  28. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5"/>
  29. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8">
  30. <Rectangle.Effect>
  31. <BlurEffect Radius="15"/>
  32. </Rectangle.Effect>
  33. </Rectangle>
  34. <Grid Margin="0,10">
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="30"/>
  37. <RowDefinition Height="30"/>
  38. </Grid.RowDefinitions>
  39. <Grid.ColumnDefinitions>
  40. <ColumnDefinition Width="42"/>
  41. <ColumnDefinition />
  42. </Grid.ColumnDefinitions>
  43. <TextBlock Text="Upper" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  44. <StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  45. <ctrl:Slot ViewType="Front" x:Name="EFEMUpper" DataContext="{Binding UnitData.WaferManager.Wafers[1],RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top">
  46. <i:Interaction.Triggers>
  47. <i:EventTrigger EventName="SlotMouseButtonDown">
  48. <cal:ActionMessage MethodName="OnMouseUp">
  49. <cal:Parameter Value="$source" />
  50. <cal:Parameter Value="$eventargs" />
  51. </cal:ActionMessage>
  52. </i:EventTrigger>
  53. <i:EventTrigger EventName="WaferTransferStarted">
  54. <cal:ActionMessage MethodName="OnWaferTransfer">
  55. <cal:Parameter Value="$eventargs" />
  56. </cal:ActionMessage>
  57. </i:EventTrigger>
  58. </i:Interaction.Triggers>
  59. </ctrl:Slot>
  60. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0">
  61. <Rectangle.Effect>
  62. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  63. </Rectangle.Effect>
  64. </Rectangle>
  65. </StackPanel>
  66. <TextBlock Grid.Row="1" Text="Lower" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  67. <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  68. <ctrl:Slot ViewType="Front" x:Name="EFEMLower" DataContext="{Binding UnitData.WaferManager.Wafers[0],RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top">
  69. <i:Interaction.Triggers>
  70. <i:EventTrigger EventName="SlotMouseButtonDown">
  71. <cal:ActionMessage MethodName="OnMouseUp">
  72. <cal:Parameter Value="$source" />
  73. <cal:Parameter Value="$eventargs" />
  74. </cal:ActionMessage>
  75. </i:EventTrigger>
  76. <i:EventTrigger EventName="WaferTransferStarted">
  77. <cal:ActionMessage MethodName="OnWaferTransfer">
  78. <cal:Parameter Value="$eventargs" />
  79. </cal:ActionMessage>
  80. </i:EventTrigger>
  81. </i:Interaction.Triggers>
  82. </ctrl:Slot>
  83. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0">
  84. <Rectangle.Effect>
  85. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  86. </Rectangle.Effect>
  87. </Rectangle>
  88. </StackPanel>
  89. </Grid>
  90. </Grid>
  91. </Border>
  92. </Grid>
  93. </UserControl>