WaferCtrl.xaml 1.5 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="MECF.Framework.UI.Client.ClientControls.EfemControls.WaferCtrl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  5. xmlns:cal="clr-namespace:Caliburn.Micro"
  6. xmlns:ctrl="clr-namespace:OpenSEMI.Ctrlib.Controls">
  7. <Grid RenderTransformOrigin="0.5,0.5">
  8. <ctrl:Slot ViewType="Top" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}"
  9. DataContext="{Binding WaferData,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" HorizontalAlignment="Center" VerticalAlignment="Center">
  10. <i:Interaction.Triggers>
  11. <i:EventTrigger EventName="SlotMouseButtonDown">
  12. <cal:ActionMessage MethodName="OnMouseUp">
  13. <cal:Parameter Value="$source" />
  14. <cal:Parameter Value="$eventargs" />
  15. </cal:ActionMessage>
  16. </i:EventTrigger>
  17. <i:EventTrigger EventName="WaferTransferStarted">
  18. <cal:ActionMessage MethodName="OnWaferTransfer">
  19. <cal:Parameter Value="$eventargs" />
  20. </cal:ActionMessage>
  21. </i:EventTrigger>
  22. </i:Interaction.Triggers>
  23. </ctrl:Slot>
  24. </Grid>
  25. </UserControl>