<UserControl x:Class="CyberX8_Themes.UserControls.WaferHolderProcessCell"
             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:CyberX8_Themes.UserControls"     
             xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
             mc:Ignorable="d" x:Name="self"
             d:DesignHeight="100" d:DesignWidth="30">
    <UserControl.Resources>
        <converters:BoolToVisibility3 x:Key="boolToVisibility3"/>
        <converters:IntToColorConverter x:Key="intToColorConvert"/>
    </UserControl.Resources>
    <Grid>
        <Viewbox Stretch="Fill">
            <Canvas  MouseLeftButtonUp="Canvas_MouseLeftButtonUp" Width="30" Height="100" Background="{Binding ElementName=self, Path=CellStatus, Converter={StaticResource intToColorConvert}}">
                <Polygon Points="0,0 30,0 30,100 0,100" StrokeThickness="1" Stroke="Black"></Polygon>
                <local:WaferHolderControl Canvas.Top="-10" Width="25" Height="100" HorizontalAlignment="Left" VerticalAlignment="Center" Canvas.Left="3" IsWHEnable="{Binding ElementName=self,Path=IsWHEnable}"
                                          Visibility="{Binding ElementName=self, Path=WaferHolderVisible, Converter={StaticResource boolToVisibility3}}"/>
                <Label Content="{Binding ElementName=self, Path=CellName}" Canvas.Left="3" Canvas.Top="60" FontSize="10" HorizontalAlignment="Left" VerticalAlignment="Center">
                    <Label.RenderTransform>
                        <RotateTransform Angle="-90"></RotateTransform>
                    </Label.RenderTransform>
                </Label>
            </Canvas>

        </Viewbox>
    </Grid>
</UserControl>