| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | <UserControl x:Class="EfemUI.Controls.FoupItemPro3"             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:EfemUI.Controls"               xmlns:local1="clr-namespace:Aitex.Sorter.UI.Controls;assembly=Aitex.Sorter.UI"             mc:Ignorable="d"              d:DesignHeight="300" d:DesignWidth="300" PreviewKeyDown="UserControl_PreviewKeyDown">    <UserControl.Resources>        <local1:FoupModeConverter x:Key="FoupModeConverter" />        <local:ItemIndexConverter5 x:Key="ItemIndexConverter5" />        <local:ShowSlotItemConverter5 x:Key="ShowSlotItemConverter5" />        <local:ItemIndexConverter6 x:Key="ItemIndexConverter6" />        <local:ShowSlotItemConverter6 x:Key="ShowSlotItemConverter6" />    </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="20" />            <ItemsControl Grid.Column="1" Grid.Row="1" x:Name="Slot"  ItemsSource="{Binding Slots}"  AlternationCount="26">                <ItemsControl.Resources>                    <Style TargetType="{x:Type local1:WaferPro}">                        <EventSetter Event="local1:WaferPro.PreviewMouseLeftButtonDown" Handler="lbItem_PreviewMouseLeftButtonDown"/>                        <EventSetter Event="local1:WaferPro.PreviewMouseMove" Handler="lbItem_PreviewMouseMove"/>                        <EventSetter Event="Drop" Handler="Slot_Drop"/>                    </Style>                </ItemsControl.Resources>                <ItemsControl.ItemTemplate>                    <DataTemplate>                        <Grid>                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="175"/>                                <ColumnDefinition Width="9"/>                            </Grid.ColumnDefinitions>                            <local1:WaferPro IsEnableTextMenu1="{Binding ElementName=Slot,Path=DataContext.IsEnableTextMenu1}"   Height="9.5" Margin="0" Padding="0"  Grid.Row="0" Grid.Column="0" ShowSlotIndex="{Binding ElementName=Slot,Path=DataContext.ShowSlotsIndex}" WaferIDDisplayMode="WaferOrigin"  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}">                            <local1:WaferPro.Slot>                                <MultiBinding Converter="{StaticResource ItemIndexConverter5 }">                                    <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)"/>                                    <Binding ElementName="Slot" Path="DataContext.SlotCount" />                                </MultiBinding>                            </local1:WaferPro.Slot>                            <local1:WaferPro.ShowSlot>                                <MultiBinding Converter="{StaticResource ShowSlotItemConverter5 }">                                    <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)"/>                                    <Binding ElementName="Slot" Path="DataContext.SlotCount" />                                </MultiBinding>                            </local1:WaferPro.ShowSlot>                            <!--<local:Wafer.Slot> 								<MultiBinding Converter="{StaticResource waferIDConverter }">									<Binding/>									<Binding ElementName="Slot" Path="ItemsSource"/>								</MultiBinding> 							</local:Wafer.Slot>-->                            </local1:WaferPro>                            <TextBlock Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding RelativeSource={RelativeSource TemplatedParent},Path=(ItemsControl.AlternationIndex), Converter={StaticResource ItemIndexConverter6}}"  FontSize="8" FontWeight="Bold">                                <TextBlock.Visibility>                                    <MultiBinding Converter="{StaticResource ShowSlotItemConverter6}">                                        <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)"/>                                        <Binding ElementName="Slot" Path="DataContext.SlotCount" />                                    </MultiBinding>                                </TextBlock.Visibility>                            </TextBlock>                        </Grid>                    </DataTemplate>                </ItemsControl.ItemTemplate>            </ItemsControl>        </Grid>    </Border></UserControl>
 |