<UserControl
    x:Class="SicUI.Controls.M2C4Parts.M2C4EFEMView3"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    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:unitControls="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls;assembly=MECF.Framework.UI.Client"
    Width="771"
    Height="699"
    mc:Ignorable="d">
    <Grid
        x:Name="root"
        Height="800"
        VerticalAlignment="Top">
        <Canvas Margin="-47,52,47,20">
            <Image
                Canvas.Left="250"
                Canvas.Top="224"
                Width="275"
                Height="275"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                Source="Images/tm4.png" />
            <Image
                Canvas.Left="341"
                Canvas.Top="327.333"
                Source="Images/tm3.png" />
            <TextBlock
                Canvas.Left="360"
                Canvas.Top="269"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                FontFamily="Arial"
                FontSize="18"
                Text="TM" />

            <Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
                <TextBlock
                    Canvas.Left="207"
                    Canvas.Top="146"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    FontFamily="Arial"
                    FontSize="18"
                    Text="PM1"
                    Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}" />
                <Image
                    Canvas.Left="189"
                    Canvas.Top="141"
                    Width="160"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    Source="Images/pmbg51.png">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="-5.5" />
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <unitControls:Door
                    Canvas.Left="278"
                    Canvas.Top="272"
                    Width="90"
                    Height="9"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    IsDoorOpen="{Binding IsPM1DoorOpen}"
                    RenderTransformOrigin="0.5,0.5">
                    <unitControls:Door.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform />
                            <SkewTransform />
                            <RotateTransform Angle="-36" />
                            <TranslateTransform />
                        </TransformGroup>
                    </unitControls:Door.RenderTransform>
                </unitControls:Door>

            </Canvas>
            <Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
                <TextBlock
                    Canvas.Left="510"
                    Canvas.Top="146"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    FontFamily="Arial"
                    FontSize="18"
                    Text="PM2"
                    Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}" />
                <Image
                    Canvas.Left="410"
                    Canvas.Top="129"
                    Width="160"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    Source="Images/pmbg41.png">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform />
                            <SkewTransform />
                            <RotateTransform Angle="5.5" />
                            <TranslateTransform />
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <unitControls:Door
                    Canvas.Left="389"
                    Canvas.Top="274"
                    Width="90"
                    Height="8"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    IsDoorOpen="{Binding IsPM2DoorOpen}"
                    RenderTransformOrigin="0.5,0.5">
                    <unitControls:Door.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform />
                            <SkewTransform />
                            <RotateTransform Angle="35.8" />
                            <TranslateTransform />
                        </TransformGroup>
                    </unitControls:Door.RenderTransform>
                </unitControls:Door>
                <!--  Tray和晶圆  -->

            </Canvas>

            <Canvas Visibility="{Binding IsLoadLockInstalled, Converter={StaticResource BoolVisibilityConverter}}">
                <TextBlock
                    Canvas.Left="536"
                    Canvas.Top="418"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Center"
                    FontFamily="Arial"
                    FontSize="18"
                    Text="Load"
                    Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}" />
                <unitControls:Door
                    Canvas.Left="404"
                    Canvas.Top="428"
                    Width="83"
                    Height="9"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    IsDoorOpen="{Binding IsLLDoorOpen}"
                    RenderTransformOrigin="0.5,0.5">
                    <unitControls:Door.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="-46" />
                        </TransformGroup>
                    </unitControls:Door.RenderTransform>
                </unitControls:Door>
                <Image
                    Canvas.Left="406"
                    Canvas.Top="470"
                    Width="110"
                    Height="126"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    Source="Images/wf-2.png">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="-46" />
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
            </Canvas>

            <local:AtmRobotMultiLP
                Canvas.Left="349"
                Canvas.Top="316"
                Width="550"
                Height="80"
                HasTray="{Binding TMRobotHaveTray}"
                HasWafer="{Binding IsArmWater}"
                IsEnabled="{Binding TMEnableWaferClick}"
                RobotMoveInfo="{Binding TmRobotMoveInfo}"
                RotateAngle="123"
                ShowDock="False"
                TranslateX="120"
                Wafer1="{Binding TMRobotWafer1}" />

            <Canvas Visibility="{Binding IsBufferInstalled, Converter={StaticResource BoolVisibilityConverter}}">
                <TextBlock
                    Canvas.Left="166"
                    Canvas.Top="418"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Center"
                    FontFamily="Arial"
                    FontSize="18"
                    Text="Buffer"
                    Visibility="{Binding IsBufferInstalled, Converter={StaticResource BoolVisibilityConverter}}" />
                <Image
                    Canvas.Left="212"
                    Canvas.Top="407"
                    Width="100"
                    Height="120"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    RenderTransformOrigin="0.5,0.5"
                    Source="Images/Buffer.png">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="45" />
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <unitControls:Door
                    Canvas.Left="263"
                    Canvas.Top="420"
                    Width="82"
                    Height="9"
                    IsDoorOpen="{Binding IsBufferDoorOpen}"
                    RenderTransformOrigin="0.5,0.5">
                    <unitControls:Door.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform />
                            <SkewTransform />
                            <RotateTransform Angle="45" />
                            <TranslateTransform />
                        </TransformGroup>
                    </unitControls:Door.RenderTransform>
                </unitControls:Door>
            </Canvas>

            <Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
                <Image
                    Canvas.Left="247"
                    Canvas.Top="180"
                    Width="82"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    Source="Images/pm52.png"
                    Visibility="{Binding PM1HaveTray}" />
                <controls:WaferCtrl
                    Canvas.Left="258"
                    Canvas.Top="192"
                    Width="58"
                    Height="58"
                    IsEnabled="{Binding PM1EnableWaferClick}"
                    IsRotary="{Binding IsPm1WaferRotary}"
                    WaferData="{Binding PM1Wafer}" />

            </Canvas>
            <Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
                <Image
                    Canvas.Left="431"
                    Canvas.Top="185"
                    Width="82"
                    Source="Images/pm52.png"
                    Visibility="{Binding PM2HaveTray}" />
                <controls:WaferCtrl
                    Canvas.Left="442"
                    Canvas.Top="197"
                    Width="58"
                    Height="58"
                    IsEnabled="{Binding PM2EnableWaferClick}"
                    IsRotary="{Binding IsPm2WaferRotary}"
                    WaferData="{Binding PM2Wafer}" />

            </Canvas>

            <Canvas Visibility="{Binding IsLoadLockInstalled, Converter={StaticResource BoolVisibilityConverter}}">
                <Image
                    Canvas.Left="449"
                    Canvas.Top="435"
                    Width="82"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Center"
                    Source="Images/pm52.png"
                    Visibility="{Binding LoadLockHaveTray}" />
                <controls:WaferCtrl
                    Canvas.Left="460"
                    Canvas.Top="446"
                    Width="58"
                    Height="58"
                    IsEnabled="{Binding LLEnableWaferClick}"
                    WaferData="{Binding LoadLockWafer}" />
            </Canvas>
        </Canvas>
    </Grid>
</UserControl>