<UserControl x:Class="CtrEditor.ObjetosSim.Extraccion_Datos.ucExtraccionTag"
             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:i="http://schemas.microsoft.com/xaml/behaviors"
             xmlns:vm="clr-namespace:CtrEditor.ObjetosSim.Extraccion_Datos"
             mc:Ignorable="d" 
             Visibility="{Binding Show_On_This_Page, Converter={StaticResource BoolToVisibilityConverter}}">

    <UserControl.DataContext>
        <vm:osExtraccionTag/>
    </UserControl.DataContext>

    <Canvas>
        <Rectangle x:Name="Area" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}"
                Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}"
                Opacity="{Binding Opacity_oculto}" Fill="Green" Stroke="Black">
        </Rectangle>
        <Viewbox Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}"
                Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}">
            <Label Content="{Binding Angulo}" VerticalAlignment="Top" HorizontalAlignment="Center"
                    RenderTransformOrigin="0.5,0.5" Opacity="0.1">
                <Label.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform />
                        <SkewTransform />
                        <RotateTransform Angle="{Binding Angulo}" />
                        <TranslateTransform />
                    </TransformGroup>
                </Label.RenderTransform>
            </Label>
        </Viewbox>
    </Canvas>
</UserControl>
