AlignerFrontView.xaml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <UserControl x:Class="VirgoUI.Client.Models.Controls.AlignerFrontView"
  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:VirgoUI.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="Aligner" HorizontalAlignment="Center" VerticalAlignment="Center">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition />
  14. </Grid.RowDefinitions>
  15. <TextBlock Text="Aligner 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="150" Margin="0,5">
  27. <Grid>
  28. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5"/>
  29. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8">
  30. <Rectangle.Effect>
  31. <BlurEffect Radius="15"/>
  32. </Rectangle.Effect>
  33. </Rectangle>
  34. <Grid Margin="0,10">
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="25"/>
  37. <RowDefinition Height="35"/>
  38. </Grid.RowDefinitions>
  39. <Grid Grid.Row="1">
  40. <Path Data="M10.5,0.5 L49.5,0.5 49.5,5.5 59.5,5.5 59.5,14.5 0.5,14.5 0.5,5.5 10.5,5.5 z" Fill="{DynamicResource FOUP_PathBG}" Width="60" Height="10" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Bottom">
  41. <Path.Effect>
  42. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  43. </Path.Effect>
  44. </Path>
  45. <ctrl:Slot ViewType="Front" x:Name="SlotAligner" 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" Margin="0,11,0,0">
  46. <i:Interaction.Triggers>
  47. <i:EventTrigger EventName="SlotMouseButtonDown">
  48. <cal:ActionMessage MethodName="OnMouseUp">
  49. <cal:Parameter Value="$source" />
  50. <cal:Parameter Value="$eventargs" />
  51. </cal:ActionMessage>
  52. </i:EventTrigger>
  53. <i:EventTrigger EventName="WaferTransferStarted">
  54. <cal:ActionMessage MethodName="OnWaferTransfer">
  55. <cal:Parameter Value="$eventargs" />
  56. </cal:ActionMessage>
  57. </i:EventTrigger>
  58. </i:Interaction.Triggers>
  59. </ctrl:Slot>
  60. </Grid>
  61. </Grid>
  62. </Grid>
  63. </Border>
  64. </Grid>
  65. </UserControl>