SRDFrontView.xaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <UserControl x:Class="CyberX8_Themes.UserControls.SRDFrontView"
  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="CyberX8_Themes.UserControls"
  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" x:Name="srdFrontView">
  10. <Grid x:Name="EFEM" HorizontalAlignment="Center" VerticalAlignment="Center">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition />
  14. </Grid.RowDefinitions>
  15. <Canvas x:Name="canvas" PreviewDrop="Canvas_Drop" AllowDrop="True" Background="Transparent" Grid.RowSpan="2"/>
  16. <TextBlock Text="{Binding ElementName=srdFrontView,Path=Title}" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center" HorizontalAlignment="Center">
  17. <TextBlock.Style>
  18. <Style>
  19. <Style.Triggers>
  20. <DataTrigger Binding="{Binding ShowTitle,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  21. <Setter Property="TextBlock.Visibility" Value="Collapsed" />
  22. </DataTrigger>
  23. </Style.Triggers>
  24. </Style>
  25. </TextBlock.Style>
  26. </TextBlock>
  27. <Border Grid.Row="1" BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="{DynamicResource FOUP_OuterBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Margin="0,5" CornerRadius="4">
  28. <Grid Height="60">
  29. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="3" RadiusX="2" RadiusY="2"/>
  30. <Rectangle Fill="{DynamicResource FOUP_OuterBG}" Margin="5,38,5,66" RadiusX="0" RadiusY="1"/>
  31. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,8,8,76" RadiusX="2" RadiusY="2">
  32. <Rectangle.Effect>
  33. <BlurEffect Radius="15"/>
  34. </Rectangle.Effect>
  35. </Rectangle>
  36. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,38,8,8" RadiusX="2" RadiusY="2">
  37. <Rectangle.Effect>
  38. <BlurEffect Radius="15"/>
  39. </Rectangle.Effect>
  40. </Rectangle>
  41. <Grid Margin="0,5">
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="30"/>
  44. <RowDefinition Height="15"/>
  45. </Grid.RowDefinitions>
  46. <Grid.ColumnDefinitions>
  47. <ColumnDefinition Width="47"/>
  48. <ColumnDefinition />
  49. </Grid.ColumnDefinitions>
  50. <TextBlock Text="Upper" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,7,0,10"/>
  51. <StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  52. <ctrl:Slot ViewType="Front" AllowDrop="True" Cursor="Hand" x:Name="SRDUpper" DataContext="{ Binding ElementName=srdFrontView,Path=UnitData1.WaferManager.Wafers[0]}" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" SlotMouseButtonDown="Slot_SlotMouseButtonDown" WaferTransferStarted="Slot_WaferTransferStarted">
  53. </ctrl:Slot>
  54. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0" RadiusX="0.5" RadiusY="0.5">
  55. <Rectangle.Effect>
  56. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  57. </Rectangle.Effect>
  58. </Rectangle>
  59. </StackPanel>
  60. <TextBlock Grid.Row="1" Text="Lower" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,0,7"/>
  61. <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="0,-5,5,0">
  62. <ctrl:Slot ViewType="Front" AllowDrop="True" Cursor="Hand" x:Name="SRDLower" DataContext="{Binding UnitData2.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" SlotMouseButtonDown="Slot_SlotMouseButtonDown" WaferTransferStarted="Slot_WaferTransferStarted">
  63. </ctrl:Slot>
  64. <Rectangle Width="30" Height="3" Fill="{DynamicResource FOUP_PathBG}" Margin="0,2,0,0" RadiusX="0.5" RadiusY="0.5">
  65. <Rectangle.Effect>
  66. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  67. </Rectangle.Effect>
  68. </Rectangle>
  69. </StackPanel>
  70. </Grid>
  71. </Grid>
  72. </Border>
  73. </Grid>
  74. </UserControl>