FOUPFrontView.xaml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <UserControl x:Class="Venus_Themes.UserControls.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:local="clr-namespace:Venus_Themes.UserControls"
  7. xmlns:converter="clr-namespace:Venus_Themes.Converters"
  8. xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  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="90" Height="16" TextAlignment="Center" FontSize="14"
  17. TextWrapping="Wrap" FontWeight="{Binding UnitData.UnitFontWeight, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Margin="0 0 0 5"
  18. Foreground="{Binding UnitData.UnitNameForeground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="{Binding ShowTitle, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},Converter={StaticResource bool2VisibilityConverter}}">
  19. </TextBlock>
  20. <Border BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="White" HorizontalAlignment="Center" VerticalAlignment="Center" Width="130" Margin="0,0,0,5">
  21. <Grid Background="White">
  22. <!--<Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5,5,15,5"/>-->
  23. <Rectangle Margin="8,8,18,8">
  24. <Rectangle.Effect>
  25. <BlurEffect Radius="15"/>
  26. </Rectangle.Effect>
  27. </Rectangle>
  28. <Grid Background="#C7D2DF" Margin="3,2,0,2">
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="0"/>
  31. <RowDefinition/>
  32. </Grid.RowDefinitions>
  33. <Grid>
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition />
  36. <ColumnDefinition Width="15"/>
  37. </Grid.ColumnDefinitions>
  38. <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" />
  39. </Grid>
  40. <StackPanel Grid.Row="1" VerticalAlignment="Top">
  41. <ListBox ItemsSource="{Binding UnitData.WaferManager.Wafers, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
  42. <ListBox.ItemTemplate>
  43. <DataTemplate>
  44. <Grid Height="20">
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition Width="108"/>
  47. <ColumnDefinition Width="15"/>
  48. </Grid.ColumnDefinitions>
  49. <Rectangle Height="4" Width="30" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  50. <Rectangle.Effect>
  51. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  52. </Rectangle.Effect>
  53. </Rectangle>
  54. <Rectangle Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  55. <Rectangle.Effect>
  56. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  57. </Rectangle.Effect>
  58. </Rectangle>
  59. <controls:Slot ViewType="Front" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,4,0,0" SlotMouseButtonDown="Slot_SlotMouseButtonDown" WaferTransferStarted="Slot_WaferTransferStarted" DuplicatedVisibility="{Binding DuplicatedVisibility}" Padding="50 0 0 0">
  60. </controls:Slot>
  61. <TextBlock x:Name="Foup_Text" HorizontalAlignment="Center" Grid.Column="1" TextWrapping="Wrap" Text="{Binding SlotIndex}" Background="#666666" Foreground="White" VerticalAlignment="Bottom" FontFamily="Arial" FontSize="10" Width="13" TextAlignment="Center" >
  62. </TextBlock>
  63. </Grid>
  64. <DataTemplate.Triggers>
  65. <Trigger Property="IsMouseOver" Value="True">
  66. <Setter TargetName="Foup_Text" Property="Foreground" Value="White"/>
  67. <Setter TargetName="Foup_Text" Property="FontWeight" Value="Bold"/>
  68. <Setter TargetName="Foup_Text" Property="FontSize" Value="11"/>
  69. <Setter TargetName="Foup_Text" Property="Background" Value="Green"/>
  70. </Trigger>
  71. </DataTemplate.Triggers>
  72. </DataTemplate>
  73. </ListBox.ItemTemplate>
  74. </ListBox>
  75. </StackPanel>
  76. </Grid>
  77. </Grid>
  78. </Border>
  79. <StackPanel.Style>
  80. <Style>
  81. <Style.Triggers>
  82. <DataTrigger Binding="{Binding UnitData.IsInstalled, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  83. <Setter Property ="StackPanel.Visibility" Value="Collapsed"></Setter>
  84. </DataTrigger>
  85. </Style.Triggers>
  86. </Style>
  87. </StackPanel.Style>
  88. </StackPanel>
  89. </Grid>
  90. </UserControl>