12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <UserControl x:Class="Aitex.Sorter.UI.Controls.Foup"
- 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"
- mc:Ignorable="d"
- d:DesignHeight="668" d:DesignWidth="188">
- <UserControl.Resources>
- <local:TransferInfoConverter x:Key="transferInfoConverter" />
- </UserControl.Resources>
- <Border Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}">
- <Border.Background>
- <ImageBrush ImageSource="pack://application:,,,/Aitex.Sorter.UI;component/Resources/images/foup25.png" />
- </Border.Background>
- <Grid x:Name="root">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="10" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="20" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="85" />
- <RowDefinition Height="*" />
- <RowDefinition Height="8" />
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Title}" FontSize="24" />
- <ItemsControl x:Name="lst" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding SlotIndexes}" Tag="{Binding SlotTransferInfo}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid>
- <local:Slot Height="12.8" Margin="-1,10,0,0">
- <!--<local:Slot.TransferInfo>
- <MultiBinding Converter="{StaticResource transferInfoConverter}">
- <Binding Path="ItemIndex"/>
- <Binding Path="Tag" ElementName="lst"/>
- </MultiBinding>
- </local:Slot.TransferInfo>-->
- </local:Slot>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- <ItemsControl Grid.Column="1" Grid.Row="1" x:Name="Slot" ItemsSource="{Binding Slots}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <local:Wafer Height="22.8" 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}">
- <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>
|