Sic03/SicUI/Controls/WaferCtrl.xaml

38 lines
1.7 KiB
XML

<UserControl
x:Class="SicUI.Controls.WaferCtrl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.caliburn.org"
xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity">
<Viewbox RenderTransformOrigin="0.5,0.5">
<ctrl:Slot
HorizontalAlignment="Center"
VerticalAlignment="Center"
DataContext="{Binding WaferData, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"
LotID="{Binding LotID}"
ModuleID="{Binding ModuleID}"
SlotID="{Binding SlotID}"
SourceName="{Binding SourceName}"
ToolTip="{Binding ToolTip}"
ToolTipService.ShowOnDisabled="True"
TrayStatus="{Binding WaferTrayStatus}"
ViewType="Top"
WaferStatus="{Binding WaferStatus}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SlotMouseButtonDown">
<cal:ActionMessage MethodName="OnMouseUp">
<cal:Parameter Value="$source" />
<cal:Parameter Value="$eventargs" />
</cal:ActionMessage>
</i:EventTrigger>
<i:EventTrigger EventName="WaferTransferStarted">
<cal:ActionMessage MethodName="OnWaferTransfer">
<cal:Parameter Value="$eventargs" />
</cal:ActionMessage>
</i:EventTrigger>
</i:Interaction.Triggers>
</ctrl:Slot>
</Viewbox>
</UserControl>