BufferStation.xaml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="Aitex.Sorter.UI.Controls.BufferStation"
  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="300" d:DesignWidth="300">
  9. <Canvas x:Name="root" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}">
  10. <Grid >
  11. <Image Source="/Aitex.Sorter.UI;component/Resources/images/aligner.png" Width="50"/>
  12. <ItemsControl ItemsSource="{Binding Wafers}">
  13. <ItemsControl.ItemsPanel>
  14. <ItemsPanelTemplate>
  15. <Grid />
  16. </ItemsPanelTemplate>
  17. </ItemsControl.ItemsPanel>
  18. <ItemsControl.ItemTemplate>
  19. <DataTemplate>
  20. <local:Wafer WaferStyle="Eclipse" WaferItem="{Binding .}" Station ="{Binding DataContext.Station,ElementName=root}" Slot="0" Width="50" />
  21. </DataTemplate>
  22. </ItemsControl.ItemTemplate>
  23. </ItemsControl>
  24. </Grid>
  25. <Canvas.RenderTransform>
  26. <TransformGroup>
  27. <RotateTransform CenterX="50" CenterY="51" Angle="{Binding RotateAngel}"></RotateTransform>
  28. </TransformGroup>
  29. </Canvas.RenderTransform>
  30. </Canvas>
  31. </UserControl>