123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <UserControl x:Class="Aitex.Sorter.UI.Controls.FoupItem"
- 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">
- <UserControl.Resources>
- <local:FoupModeConverter x:Key="FoupModeConverter" />
- <local:ItemIndexConverter x:Key="ItemIndexConverter" />
- </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="{Binding SlotCount}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <local:Wafer Height="9.5" Margin="0" Padding="0" Grid.Column="1" WaferItem="{Binding}" Station="{Binding ElementName=Slot, Path=DataContext.Station}" WaferTransferCommand ="{Binding ElementName=Slot, Path=DataContext.WaferTransferCommand}" WaferTransferOptionCommand="{Binding ElementName=Slot, Path=DataContext.WaferTransferOptionCommand}" ShowSlot="True" WaferIDDisplayMode="LaserMarker" ShowControl="{Binding ElementName=Slot,Path=DataContext.ShowControl}">
- <local:Wafer.Slot>
- <MultiBinding Converter="{StaticResource ItemIndexConverter }">
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)"/>
- <Binding ElementName="Slot" Path="DataContext.SlotCount" />
- </MultiBinding>
- </local:Wafer.Slot>
- <!--<local:Wafer.Slot>
- <MultiBinding Converter="{StaticResource waferIDConverter }">
- <Binding/>
- <Binding ElementName="Slot" Path="ItemsSource"/>
- </MultiBinding>
- </local:Wafer.Slot>-->
- </local:Wafer>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
- </Border>
- </UserControl>
|