<UserControl x:Class="CtrEditor.ObjetosSim.ucBasicExample"
             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:osBasicExample Ancho="2"/>
    </UserControl.DataContext>

    <Canvas>
        <Rectangle x:Name="Transporte"
                   Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}"
                   Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}"
                   Fill="{StaticResource BeltBrush}">
            <Rectangle.RenderTransform>
                <RotateTransform Angle="{Binding Angulo}"/>
            </Rectangle.RenderTransform>
        </Rectangle>
    </Canvas>
</UserControl>