1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <UserControl x:Class="Aitex.Sorter.UI.Controls.FoupItemPro"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Aitex.Sorter.UI.Controls"
- xmlns:common="clr-namespace:Aitex.Sorter.UI.Controls.Common;assembly=Aitex.Sorter.UI"
- mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300" PreviewKeyDown="UserControl_PreviewKeyDown">
- <UserControl.Resources>
- <local:FoupModeConverter x:Key="FoupModeConverter" />
- <local:ItemIndexConverter2 x:Key="ItemIndexConverter2" />
- <local:ShowSlotItemConverter x:Key="ShowSlotItemConverter" />
- </UserControl.Resources>
- <Border x:Name="root" Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" Background="{Binding CarrierMode,Converter={StaticResource FoupModeConverter}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="25" />
- <RowDefinition Height="*" />
- <RowDefinition Height="8" />
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Title}" FontSize="24" />
- <ItemsControl Grid.Column="1" Grid.Row="1" x:Name="Slot" ItemsSource="{Binding Slots}" AlternationCount="25">
- <ItemsControl.Resources>
- <Style TargetType="{x:Type local:WaferPro}">
- <EventSetter Event="local:WaferPro.PreviewMouseLeftButtonDown" Handler="lbItem_PreviewMouseLeftButtonDown"/>
- <EventSetter Event="local:WaferPro.PreviewMouseMove" Handler="lbItem_PreviewMouseMove"/>
- <EventSetter Event="Drop" Handler="Slot_Drop"/>
- </Style>
- </ItemsControl.Resources>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <local:WaferPro Height="9.5" Margin="0" Padding="0" Grid.Column="1" ShowSlotIndex="{Binding ElementName=Slot,Path=DataContext.ShowSlotsIndex}" WaferIDDisplayMode="LaserMarker" WaferItem="{Binding}" Station="{Binding ElementName=Slot, Path=DataContext.Station}" WaferTransferCommand ="{Binding ElementName=Slot, Path=DataContext.WaferTransferCommand}" WaferTransferOptionCommand="{Binding ElementName=Slot, Path=DataContext.WaferTransferOptionCommand}" ShowControl="{Binding ElementName=Slot,Path=DataContext.ShowControl}">
- <local:WaferPro.Slot>
- <MultiBinding Converter="{StaticResource ItemIndexConverter2 }">
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)"/>
- <Binding ElementName="Slot" Path="DataContext.SlotCount" />
- </MultiBinding>
- </local:WaferPro.Slot>
- <local:WaferPro.ShowSlot>
- <MultiBinding Converter="{StaticResource ShowSlotItemConverter }">
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)"/>
- <Binding ElementName="Slot" Path="DataContext.SlotCount" />
- </MultiBinding>
- </local:WaferPro.ShowSlot>
- <!--<local:Wafer.Slot>
- <MultiBinding Converter="{StaticResource waferIDConverter }">
- <Binding/>
- <Binding ElementName="Slot" Path="ItemsSource"/>
- </MultiBinding>
- </local:Wafer.Slot>-->
- </local:WaferPro>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
- </Border>
- </UserControl>
|