FOUPFrontViewBig.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.FOUPFrontViewBig"
  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. <converter:WaferStatusConverter x:Key="WaferStatusConverter"/>
  14. <Style x:Key="CheckBoxStyle" TargetType="{x:Type CheckBox}">
  15. <Setter Property="SnapsToDevicePixels" Value="true" />
  16. <Setter Property="OverridesDefaultStyle" Value="False" />
  17. <Setter Property="FocusVisualStyle" Value="{DynamicResource CheckBoxFocusVisual}" />
  18. <Setter Property="Height" Value="52"/>
  19. <Setter Property="Width" Value="45"/>
  20. <Setter Property="IsChecked" Value="True"/>
  21. <Setter Property="Template">
  22. <Setter.Value>
  23. <ControlTemplate TargetType="CheckBox">
  24. <Grid>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="Auto"/>
  27. <ColumnDefinition Width="*"/>
  28. </Grid.ColumnDefinitions>
  29. <Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Height}">
  30. <Rectangle x:Name="CheckBoxRectangle" Fill="White" Opacity="0.3" RadiusY="5" RadiusX="5"/>
  31. <Rectangle x:Name="CheckBoxRectangleOut" Stroke="#FFABADB3" StrokeThickness="1" RadiusY="5" RadiusX="5"/>
  32. <Grid x:Name="CheckedMark" Height="{TemplateBinding Height}" Width="{TemplateBinding Height}" Visibility="Collapsed" >
  33. <Viewbox>
  34. <Grid>
  35. <Path SnapsToDevicePixels="True" StrokeThickness="3" Data="M1,9 L10,17" Stroke="#3553ad"/>
  36. <Path SnapsToDevicePixels="True" StrokeThickness="3" Data="M8,17 L20,4" Stroke="#3553ad"/>
  37. </Grid>
  38. </Viewbox>
  39. </Grid>
  40. </Grid>
  41. <ContentPresenter Grid.Column="1" VerticalAlignment="Center" Margin="8,0,0,0"/>
  42. </Grid>
  43. <ControlTemplate.Triggers>
  44. <Trigger Property="IsChecked" Value="True">
  45. <Setter TargetName="CheckedMark" Property="Visibility" Value="Visible"></Setter>
  46. </Trigger>
  47. </ControlTemplate.Triggers>
  48. </ControlTemplate>
  49. </Setter.Value>
  50. </Setter>
  51. </Style>
  52. </UserControl.Resources>
  53. <Grid>
  54. <StackPanel>
  55. <TextBlock Text="{Binding UnitData.ModuleID, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" FontFamily="Arial" Width="160" Height="16" TextAlignment="Center" FontSize="18" TextWrapping="Wrap" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center">
  56. </TextBlock>
  57. <Border BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="{DynamicResource FOUP_OuterBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="235" Margin="0,5">
  58. <Grid>
  59. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5,5,5,5"/>
  60. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,8,18,8">
  61. <Rectangle.Effect>
  62. <BlurEffect Radius="15"/>
  63. </Rectangle.Effect>
  64. </Rectangle>
  65. <Grid Margin="5,10,0,10">
  66. <Grid.RowDefinitions>
  67. <RowDefinition Height="0"/>
  68. <RowDefinition/>
  69. </Grid.RowDefinitions>
  70. <Grid>
  71. <Grid.ColumnDefinitions>
  72. <ColumnDefinition />
  73. <ColumnDefinition Width="15"/>
  74. </Grid.ColumnDefinitions>
  75. <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" />
  76. </Grid>
  77. <StackPanel Grid.Row="1" VerticalAlignment="Top">
  78. <ListBox ItemContainerStyle="{DynamicResource NoSelection_ListBoxItem}" ItemsSource="{Binding UnitData.WaferManager.Wafers, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
  79. <ListBox.ItemTemplate>
  80. <DataTemplate>
  81. <Grid Height="32">
  82. <Grid.ColumnDefinitions>
  83. <ColumnDefinition Width="33"/>
  84. <ColumnDefinition Width="150"/>
  85. <ColumnDefinition Width="15"/>
  86. </Grid.ColumnDefinitions>
  87. <CheckBox Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="32" Style="{StaticResource CheckBoxStyle}" IsEnabled="{Binding WaferStatus,Converter={StaticResource WaferStatusConverter}}" IsChecked="{Binding IsChecked}"/>
  88. <Rectangle Grid.Column="1" Height="4" Width="30" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  89. <Rectangle.Effect>
  90. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  91. </Rectangle.Effect>
  92. </Rectangle>
  93. <Rectangle Grid.Column="1" Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  94. <Rectangle.Effect>
  95. <DropShadowEffect Direction="180" BlurRadius="0" ShadowDepth="1"/>
  96. </Rectangle.Effect>
  97. </Rectangle>
  98. <controls:Slot x:Name="SlotCls" ViewType="Front" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Grid.Column="1" Margin="0,9,0,0">
  99. <i:Interaction.Triggers>
  100. <i:EventTrigger EventName="SlotMouseButtonDown">
  101. <micro:ActionMessage MethodName="OnMouseUp">
  102. <micro:Parameter Value="$source" />
  103. <micro:Parameter Value="$eventargs" />
  104. </micro:ActionMessage>
  105. </i:EventTrigger>
  106. <i:EventTrigger EventName="WaferTransferStarted">
  107. <micro:ActionMessage MethodName="OnWaferTransfer">
  108. <micro:Parameter Value="$eventargs" />
  109. </micro:ActionMessage>
  110. </i:EventTrigger>
  111. </i:Interaction.Triggers>
  112. </controls:Slot>
  113. <TextBlock x:Name="Foup_Text" HorizontalAlignment="Center" Grid.Column="2" TextWrapping="Wrap" Text="{Binding SlotIndex}" Background="#FF646464" Foreground="White" VerticalAlignment="Bottom" FontFamily="Arial" FontSize="10" Width="13" TextAlignment="Center">
  114. </TextBlock>
  115. </Grid>
  116. <DataTemplate.Triggers>
  117. <Trigger Property="IsMouseOver" Value="True">
  118. <Setter TargetName="Foup_Text" Property="Foreground" Value="White"/>
  119. <Setter TargetName="Foup_Text" Property="FontWeight" Value="Bold"/>
  120. <Setter TargetName="Foup_Text" Property="FontSize" Value="11"/>
  121. <Setter TargetName="Foup_Text" Property="Background" Value="Green"/>
  122. </Trigger>
  123. </DataTemplate.Triggers>
  124. </DataTemplate>
  125. </ListBox.ItemTemplate>
  126. </ListBox>
  127. </StackPanel>
  128. </Grid>
  129. </Grid>
  130. </Border>
  131. <StackPanel.Style>
  132. <Style>
  133. <Style.Triggers>
  134. <DataTrigger Binding="{Binding UnitData.IsInstalled, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  135. <Setter Property ="StackPanel.Visibility" Value="Collapsed"></Setter>
  136. </DataTrigger>
  137. </Style.Triggers>
  138. </Style>
  139. </StackPanel.Style>
  140. </StackPanel>
  141. </Grid>
  142. </UserControl>