TMFrontView.xaml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <UserControl x:Class="EfemDual.Client.Models.Controls.TMFrontView"
  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:EfemDual.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="TM" HorizontalAlignment="Center" VerticalAlignment="Center">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition />
  14. </Grid.RowDefinitions>
  15. <TextBlock Text="TM Front 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="170" Margin="0,5" CornerRadius="4">
  27. <Grid Height="82">
  28. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5" RadiusX="2" RadiusY="2"/>
  29. <Rectangle Fill="{DynamicResource FOUP_OuterBG}" Margin="5,38,5,66" RadiusX="0" RadiusY="1"/>
  30. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,8,8,76" RadiusX="2" RadiusY="2">
  31. <Rectangle.Effect>
  32. <BlurEffect Radius="15"/>
  33. </Rectangle.Effect>
  34. </Rectangle>
  35. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,46,8,8" RadiusX="2" RadiusY="2">
  36. <Rectangle.Effect>
  37. <BlurEffect Radius="15"/>
  38. </Rectangle.Effect>
  39. </Rectangle>
  40. <Grid Margin="0,10">
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="30"/>
  43. <RowDefinition Height="30"/>
  44. </Grid.RowDefinitions>
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition Width="42"/>
  47. <ColumnDefinition />
  48. </Grid.ColumnDefinitions>
  49. <TextBlock Text="Upper" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,7,0,10"/>
  50. <StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  51. <ctrl:Slot ViewType="Front" x:Name="TMUpper" Width="100" 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">
  52. <i:Interaction.Triggers>
  53. <i:EventTrigger EventName="SlotMouseButtonDown">
  54. <cal:ActionMessage MethodName="OnMouseUp">
  55. <cal:Parameter Value="$source" />
  56. <cal:Parameter Value="$eventargs" />
  57. </cal:ActionMessage>
  58. </i:EventTrigger>
  59. <i:EventTrigger EventName="WaferTransferStarted">
  60. <cal:ActionMessage MethodName="OnWaferTransfer">
  61. <cal:Parameter Value="$eventargs" />
  62. </cal:ActionMessage>
  63. </i:EventTrigger>
  64. </i:Interaction.Triggers>
  65. </ctrl:Slot>
  66. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0" RadiusX="0.5" RadiusY="0.5">
  67. <Rectangle.Effect>
  68. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  69. </Rectangle.Effect>
  70. </Rectangle>
  71. </StackPanel>
  72. <TextBlock Grid.Row="1" Text="Lower" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,10,0,7"/>
  73. <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  74. <ctrl:Slot ViewType="Front" x:Name="TMLower" Width="100" Margin="0,10,0,0" 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">
  75. <i:Interaction.Triggers>
  76. <i:EventTrigger EventName="SlotMouseButtonDown">
  77. <cal:ActionMessage MethodName="OnMouseUp">
  78. <cal:Parameter Value="$source" />
  79. <cal:Parameter Value="$eventargs" />
  80. </cal:ActionMessage>
  81. </i:EventTrigger>
  82. <i:EventTrigger EventName="WaferTransferStarted">
  83. <cal:ActionMessage MethodName="OnWaferTransfer">
  84. <cal:Parameter Value="$eventargs" />
  85. </cal:ActionMessage>
  86. </i:EventTrigger>
  87. </i:Interaction.Triggers>
  88. </ctrl:Slot>
  89. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0" RadiusX="0.5" RadiusY="0.5">
  90. <Rectangle.Effect>
  91. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  92. </Rectangle.Effect>
  93. </Rectangle>
  94. <!--<ctrl:Slot ViewType="Front" x:Name="EFEMLower1" Width="100" Margin="0,10,0,0" 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">
  95. <i:Interaction.Triggers>
  96. <i:EventTrigger EventName="SlotMouseButtonDown">
  97. <cal:ActionMessage MethodName="OnMouseUp">
  98. <cal:Parameter Value="$source" />
  99. <cal:Parameter Value="$eventargs" />
  100. </cal:ActionMessage>
  101. </i:EventTrigger>
  102. <i:EventTrigger EventName="WaferTransferStarted">
  103. <cal:ActionMessage MethodName="OnWaferTransfer">
  104. <cal:Parameter Value="$eventargs" />
  105. </cal:ActionMessage>
  106. </i:EventTrigger>
  107. </i:Interaction.Triggers>
  108. </ctrl:Slot>
  109. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0" RadiusX="0.5" RadiusY="0.5">
  110. <Rectangle.Effect>
  111. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  112. </Rectangle.Effect>
  113. </Rectangle>-->
  114. </StackPanel>
  115. </Grid>
  116. </Grid>
  117. </Border>
  118. </Grid>
  119. </UserControl>