TMFrontView.xaml 6.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <UserControl x:Class="VirgoUI.Client.Models.Controls.TMFrontView"
  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. xmlns:converter="clr-namespace:VirgoUI.Client.Models.Converter"
  11. mc:Ignorable="d" >
  12. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="Auto"/>
  15. <RowDefinition />
  16. </Grid.RowDefinitions>
  17. <TextBlock Text="TM Front View" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center" HorizontalAlignment="Center">
  18. <TextBlock.Style>
  19. <Style>
  20. <Style.Triggers>
  21. <DataTrigger Binding="{Binding ShowTitle,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  22. <Setter Property="TextBlock.Visibility" Value="Collapsed" />
  23. </DataTrigger>
  24. </Style.Triggers>
  25. </Style>
  26. </TextBlock.Style>
  27. </TextBlock>
  28. <Border Grid.Row="1" BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="{DynamicResource FOUP_OuterBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Margin="0,5">
  29. <Grid>
  30. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5"/>
  31. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8">
  32. <Rectangle.Effect>
  33. <BlurEffect Radius="15"/>
  34. </Rectangle.Effect>
  35. </Rectangle>
  36. <Grid Margin="0,10">
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="30"/>
  39. <RowDefinition Height="30"/>
  40. </Grid.RowDefinitions>
  41. <Grid.ColumnDefinitions>
  42. <ColumnDefinition Width="42"/>
  43. <ColumnDefinition />
  44. </Grid.ColumnDefinitions>
  45. <TextBlock Text="ArmB" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  46. <StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  47. <ctrl:Slot ViewType="Front" x:Name="Upper" DataContext="{Binding UnitData.WaferManager.Wafers[1],RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" VerticalAlignment="Top" HorizontalAlignment="Center" >
  48. <i:Interaction.Triggers>
  49. <i:EventTrigger EventName="SlotMouseButtonDown">
  50. <cal:ActionMessage MethodName="OnMouseUp">
  51. <cal:Parameter Value="$source" />
  52. <cal:Parameter Value="$eventargs" />
  53. </cal:ActionMessage>
  54. </i:EventTrigger>
  55. <i:EventTrigger EventName="WaferTransferStarted">
  56. <cal:ActionMessage MethodName="OnWaferTransfer">
  57. <cal:Parameter Value="$eventargs" />
  58. </cal:ActionMessage>
  59. </i:EventTrigger>
  60. </i:Interaction.Triggers>
  61. </ctrl:Slot>
  62. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0">
  63. <Rectangle.Effect>
  64. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  65. </Rectangle.Effect>
  66. </Rectangle>
  67. </StackPanel>
  68. <TextBlock Grid.Row="1" Text="ArmA" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
  69. <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  70. <ctrl:Slot ViewType="Front" x:Name="Lower" 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}" VerticalAlignment="Top" HorizontalAlignment="Center" >
  71. <i:Interaction.Triggers>
  72. <i:EventTrigger EventName="SlotMouseButtonDown">
  73. <cal:ActionMessage MethodName="OnMouseUp">
  74. <cal:Parameter Value="$source" />
  75. <cal:Parameter Value="$eventargs" />
  76. </cal:ActionMessage>
  77. </i:EventTrigger>
  78. <i:EventTrigger EventName="WaferTransferStarted">
  79. <cal:ActionMessage MethodName="OnWaferTransfer">
  80. <cal:Parameter Value="$eventargs" />
  81. </cal:ActionMessage>
  82. </i:EventTrigger>
  83. </i:Interaction.Triggers>
  84. </ctrl:Slot>
  85. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0">
  86. <Rectangle.Effect>
  87. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  88. </Rectangle.Effect>
  89. </Rectangle>
  90. </StackPanel>
  91. </Grid>
  92. </Grid>
  93. </Border>
  94. </Grid>
  95. </UserControl>