<UserControl x:Class="CtrEditor.ObjetosSim.ucTextPlate"
             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"
             mc:Ignorable="d">

    <UserControl.DataContext>
        <vm:osTextPlate Color_Titulo="Black" Alto_Titulo="0.1"/>
    </UserControl.DataContext>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Viewbox Grid.Row="0" Height="{Binding Alto_Titulo, Converter={StaticResource MeterToPixelConverter}}"  >
            <Label Content="{Binding Titulo}"                       
                   VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"                    
                   Foreground="{Binding Color_Titulo, Converter={StaticResource ColorToBrushConverter}}"/>
        </Viewbox>
        <Rectangle Grid.Row="1" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}" 
                   Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}" 
                   Fill="{Binding Color, Converter={StaticResource ColorToBrushConverter}}" />

    </Grid>
</UserControl>