12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <UserControl x:Class="EfemUI.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: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:SlotItemIndexConverter x:Key="slotItemIndexConverter" />
- <local:ShowSlotItemIndexConverter x:Key="showSlotItemIndexConverter" />
- <local:SlotItemIndexConverter2 x:Key="slotItemIndexConverter2" />
- <local:SlotItemVisibilityConverter x:Key="slotItemVisibilityConverter" />
- </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="18" FontWeight="Bold"/>
- <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="155" />
- <ColumnDefinition Width="9" />
- </Grid.ColumnDefinitions>
- <local1:WaferProNew IsEnableTextMenu1="{Binding ElementName=Slot,Path=DataContext.IsEnableTextMenu}"
- WaferIDDisplayMode="WaferOrigin" Height="9.5"
- ShowSlotIndex="{Binding ElementName=Slot,Path=DataContext.ShowSlotsIndex}"
- 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:WaferProNew.Slot>
- <MultiBinding Converter="{StaticResource slotItemIndexConverter}">
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)" />
- <Binding ElementName="Slot" Path="DataContext.SlotCount" />
- <Binding ElementName="Slot" Path="DataContext.IsSlotShowOpposite" />
- </MultiBinding>
- </local1:WaferProNew.Slot>
- <local1:WaferProNew.ShowSlot>
- <MultiBinding Converter="{StaticResource showSlotItemIndexConverter}">
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)" />
- <Binding ElementName="Slot" Path="DataContext.SlotCount" />
- </MultiBinding>
- </local1:WaferProNew.ShowSlot>
- <!--<local:Wafer.Slot>
- <MultiBinding Converter="{StaticResource waferIDConverter }">
- <Binding />
- <Binding ElementName="Slot" Path="ItemsSource" />
- </MultiBinding>
- </local:Wafer.Slot>-->
- </local1:WaferProNew>
- <TextBlock Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="8" FontWeight="Bold">
- <TextBlock.Text>
- <MultiBinding Converter="{StaticResource slotItemIndexConverter2}">
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="(ItemsControl.AlternationIndex)" />
- <Binding ElementName="Slot" Path="DataContext.SlotCount" />
- <Binding ElementName="Slot" Path="DataContext.IsSlotShowOpposite" />
- </MultiBinding>
- </TextBlock.Text>
- <!--<TextBlock.Visibility>
- <MultiBinding Converter="{StaticResource slotItemVisibilityConverter}">
- <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>
|