<UserControl
    x:Class="SicUI.Controls.M2C4Parts.RobotEfemTray"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Common="clr-namespace:SicUI.Controls.Common"
    xmlns:controls="clr-namespace:SicUI.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:extendedControls="clr-namespace:MECF.Framework.UI.Core.ExtendedControls;assembly=MECF.Framework.UI.Core"
    d:DesignHeight="38"
    d:DesignWidth="416"
    mc:Ignorable="d">
    <UserControl.Resources>
        <extendedControls:BindingProxy x:Key="proxy" Data="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"/>
    </UserControl.Resources>
    <Viewbox Stretch="Uniform">
        <Canvas
            x:Name="root"
            Width="416"
            Height="38">
            <Image
                Width="75"
                Height="80"
                Margin="-20,-24"
                Source="Images/AtmRobotMultiLP/dock.png"
                Visibility="{Binding ShowDock, Converter={StaticResource BoolVisibilityConverter}}" />

            <Common:AxisCanvas
                x:Name="canvas1"
                Canvas.Left="10"
                Canvas.Top="10"
                Width="68"
                Height="21">
                <Image Source="Images/AtmRobotMultiLP/dq01.png" />
                <Common:AxisCanvas
                    x:Name="canvas2"
                    Canvas.Left="36"
                    Width="46"
                    Height="21">
                    <Image Source="Images/AtmRobotMultiLP/dq01.png" />
                    <Common:AxisCanvas
                        x:Name="canvas3"
                        Canvas.Left="36"
                        Canvas.Top="-8"
                        Width="80"
                        Height="38">
                        <Image Source="Images/AtmRobotMultiLP/dq02.png" />
                        <Image
                            Canvas.Left="-6"
                            Canvas.Top="-29"
                            Width="95"
                            Source="Images/pm52.png"
                            Visibility="{Binding HasTray}" />
                        <controls:WaferCtrl
                            Canvas.Left="11"
                            Canvas.Top="-12"
                            Width="60"
                            Height="60"
                            WaferData="{Binding Wafer1}" />

                    </Common:AxisCanvas>
                </Common:AxisCanvas>
            </Common:AxisCanvas>
            <Canvas.RenderTransform>
                <TransformGroup>
                    <RotateTransform Angle="{Binding Source={StaticResource proxy},Path=Data.RotateAngle}" CenterY="30" />
                    <TranslateTransform x:Name="translate" X="{Binding Source={StaticResource proxy},Path=Data.TranslateX}" />
                </TransformGroup>
            </Canvas.RenderTransform>
        </Canvas>
    </Viewbox>
</UserControl>
