FOUPFrontView.xaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.FOUPFrontView"
  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:i="http://schemas.microsoft.com/expression/2010/interactivity"
  7. xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
  8. xmlns:micro="clr-namespace:Caliburn.Micro"
  9. xmlns:converter="clr-namespace:MECF.Framework.UI.Client.Ctrlib.Converter"
  10. mc:Ignorable="d" >
  11. <UserControl.Resources>
  12. <converter:FOUPStatusConverter x:Key="FOUPStatusConverter"/>
  13. </UserControl.Resources>
  14. <Grid>
  15. <StackPanel>
  16. <TextBlock Text="{Binding UnitData.ModuleID, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" FontFamily="Arial" Width="110" Height="16" TextAlignment="Center" FontSize="14" FontWeight="Bold" TextWrapping="Wrap" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center">
  17. </TextBlock>
  18. <Border BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="{DynamicResource FOUP_OuterBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="130" Margin="0,5">
  19. <Grid>
  20. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5,5,15,5"/>
  21. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,8,18,8">
  22. <Rectangle.Effect>
  23. <BlurEffect Radius="15"/>
  24. </Rectangle.Effect>
  25. </Rectangle>
  26. <Grid Margin="5,10,0,10">
  27. <Grid.RowDefinitions>
  28. <RowDefinition Height="0"/>
  29. <RowDefinition/>
  30. </Grid.RowDefinitions>
  31. <Grid>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition />
  34. <ColumnDefinition Width="15"/>
  35. </Grid.ColumnDefinitions>
  36. <TextBlock TextWrapping="Wrap" Text="{Binding UnitData.Status, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},Converter={StaticResource FOUPStatusConverter}}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Arial" FontSize="12" TextAlignment="Center" />
  37. </Grid>
  38. <StackPanel Grid.Row="1" VerticalAlignment="Top">
  39. <ListBox ItemContainerStyle="{DynamicResource NoSelection_ListBoxItem}" ItemsSource="{Binding UnitData.WaferManager.Wafers, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
  40. <ListBox.ItemTemplate>
  41. <DataTemplate>
  42. <Grid Height="24">
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition Width="108"/>
  45. <ColumnDefinition Width="15"/>
  46. </Grid.ColumnDefinitions>
  47. <Rectangle Height="4" Width="30" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  48. <Rectangle.Effect>
  49. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  50. </Rectangle.Effect>
  51. </Rectangle>
  52. <Rectangle Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  53. <Rectangle.Effect>
  54. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  55. </Rectangle.Effect>
  56. </Rectangle>
  57. <controls:Slot ViewType="Front" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,9,0,0">
  58. <i:Interaction.Triggers>
  59. <i:EventTrigger EventName="SlotMouseButtonDown">
  60. <micro:ActionMessage MethodName="OnMouseUp">
  61. <micro:Parameter Value="$source" />
  62. <micro:Parameter Value="$eventargs" />
  63. </micro:ActionMessage>
  64. </i:EventTrigger>
  65. <i:EventTrigger EventName="WaferTransferStarted">
  66. <micro:ActionMessage MethodName="OnWaferTransfer">
  67. <micro:Parameter Value="$eventargs" />
  68. </micro:ActionMessage>
  69. </i:EventTrigger>
  70. </i:Interaction.Triggers>
  71. </controls:Slot>
  72. <TextBlock x:Name="Foup_Text" HorizontalAlignment="Center" Grid.Column="1" TextWrapping="Wrap" Text="{Binding SlotIndex}" Background="#FF646464" Foreground="White" VerticalAlignment="Bottom" FontFamily="Arial" FontSize="10" Width="13" TextAlignment="Center">
  73. </TextBlock>
  74. </Grid>
  75. <DataTemplate.Triggers>
  76. <Trigger Property="IsMouseOver" Value="True">
  77. <Setter TargetName="Foup_Text" Property="Foreground" Value="White"/>
  78. <Setter TargetName="Foup_Text" Property="FontWeight" Value="Bold"/>
  79. <Setter TargetName="Foup_Text" Property="FontSize" Value="11"/>
  80. <Setter TargetName="Foup_Text" Property="Background" Value="Green"/>
  81. </Trigger>
  82. </DataTemplate.Triggers>
  83. </DataTemplate>
  84. </ListBox.ItemTemplate>
  85. </ListBox>
  86. </StackPanel>
  87. </Grid>
  88. </Grid>
  89. </Border>
  90. <StackPanel.Style>
  91. <Style>
  92. <Style.Triggers>
  93. <DataTrigger Binding="{Binding UnitData.IsInstalled, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  94. <Setter Property ="StackPanel.Visibility" Value="Collapsed"></Setter>
  95. </DataTrigger>
  96. </Style.Triggers>
  97. </Style>
  98. </StackPanel.Style>
  99. </StackPanel>
  100. </Grid>
  101. </UserControl>