<UserControl x:Class="CtrEditor.ObjetosSim.ucBoolTag" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
        xmlns:ei="http://schemas.microsoft.com/xaml/behaviors"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
        mc:Ignorable="d">

    <UserControl.DataContext>
        <vm:osBoolTag Show_Description="True" />
    </UserControl.DataContext>
    <Canvas RenderTransformOrigin="0.5,0.5" ToolTip="{Binding Descripcion}">
        <Canvas.RenderTransform>
            <TransformGroup>
                <ScaleTransform />
                <SkewTransform />
                <RotateTransform Angle="{Binding Angulo}" />
                <TranslateTransform />
            </TransformGroup>
        </Canvas.RenderTransform>
        <Grid Margin="10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Border x:Name="BackgroundRectangle" BorderBrush="Black" BorderThickness="2" CornerRadius="10,0,0,10"
                    Width="16" Height="25" VerticalAlignment="Center" HorizontalAlignment="Center"
                    Background="{Binding Color, Converter={StaticResource ColorToBrushConverter}}" />
            <Label Content="{Binding Descripcion}" Grid.Column="1" VerticalAlignment="Center"
                    Background="{Binding Color, Converter={StaticResource ColorToBrushConverter}}" 
                    Visibility="{Binding Show_Description, Converter={StaticResource BooleanToVisibilityConverter}}" />
            <CheckBox Grid.Column="2" VerticalAlignment="Center" IsChecked="{Binding Estado}"
                    Background="{Binding Color_oculto}" />
        </Grid>
    </Canvas>
</UserControl>
