Foup.xaml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <UserControl x:Class="Aitex.Sorter.UI.Controls.Foup"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Aitex.Sorter.UI.Controls"
  7. mc:Ignorable="d"
  8. d:DesignHeight="668" d:DesignWidth="188">
  9. <UserControl.Resources>
  10. <local:TransferInfoConverter x:Key="transferInfoConverter" />
  11. </UserControl.Resources>
  12. <Border Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}">
  13. <Border.Background>
  14. <ImageBrush ImageSource="pack://application:,,,/Aitex.Sorter.UI;component/Resources/images/foup25.png" />
  15. </Border.Background>
  16. <Grid x:Name="root">
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="10" />
  19. <ColumnDefinition Width="*" />
  20. <ColumnDefinition Width="20" />
  21. </Grid.ColumnDefinitions>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="85" />
  24. <RowDefinition Height="*" />
  25. <RowDefinition Height="8" />
  26. </Grid.RowDefinitions>
  27. <TextBlock Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Title}" FontSize="24" />
  28. <ItemsControl x:Name="lst" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding SlotIndexes}" Tag="{Binding SlotTransferInfo}">
  29. <ItemsControl.ItemTemplate>
  30. <DataTemplate>
  31. <Grid>
  32. <local:Slot Height="12.8" Margin="-1,10,0,0">
  33. <!--<local:Slot.TransferInfo>
  34. <MultiBinding Converter="{StaticResource transferInfoConverter}">
  35. <Binding Path="ItemIndex"/>
  36. <Binding Path="Tag" ElementName="lst"/>
  37. </MultiBinding>
  38. </local:Slot.TransferInfo>-->
  39. </local:Slot>
  40. </Grid>
  41. </DataTemplate>
  42. </ItemsControl.ItemTemplate>
  43. </ItemsControl>
  44. <ItemsControl Grid.Column="1" Grid.Row="1" x:Name="Slot" ItemsSource="{Binding Slots}">
  45. <ItemsControl.ItemTemplate>
  46. <DataTemplate>
  47. <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}">
  48. <local:Wafer.Slot>
  49. <MultiBinding Converter="{StaticResource waferIDConverter }">
  50. <Binding/>
  51. <Binding ElementName="Slot" Path="ItemsSource"/>
  52. </MultiBinding>
  53. </local:Wafer.Slot>
  54. </local:Wafer>
  55. </DataTemplate>
  56. </ItemsControl.ItemTemplate>
  57. </ItemsControl>
  58. </Grid>
  59. </Border>
  60. </UserControl>