1234567891011121314151617181920212223242526272829303132 |
- <UserControl x:Class="Aitex.Sorter.UI.Controls.BufferStation"
- 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="300" d:DesignWidth="300">
- <Canvas x:Name="root" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}">
- <Grid >
- <Image Source="/Aitex.Sorter.UI;component/Resources/images/aligner.png" Width="50"/>
- <ItemsControl ItemsSource="{Binding Wafers}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <Grid />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <local:Wafer WaferStyle="Eclipse" WaferItem="{Binding .}" Station ="{Binding DataContext.Station,ElementName=root}" Slot="0" Width="50" />
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
- <Canvas.RenderTransform>
- <TransformGroup>
- <RotateTransform CenterX="50" CenterY="51" Angle="{Binding RotateAngel}"></RotateTransform>
- </TransformGroup>
- </Canvas.RenderTransform>
- </Canvas>
- </UserControl>
|