FOUPFrontView.xaml 7.2 KB

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