2024-05-08 08:41:26 -03:00
|
|
|
<UserControl x:Class="CtrEditor.ObjetosSim.ucTransporteGuias"
|
|
|
|
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"
|
2024-05-11 11:58:55 -03:00
|
|
|
xmlns:convert="clr-namespace:CtrEditor.Convertidores"
|
2024-05-10 20:40:51 -03:00
|
|
|
mc:Ignorable="d">
|
2024-05-10 17:17:57 -03:00
|
|
|
|
|
|
|
<UserControl.Resources>
|
2024-05-11 11:58:55 -03:00
|
|
|
<convert:MeterToPixelConverter x:Key="MeterToPixelConverter"/>
|
|
|
|
<convert:DistanceToMarginConverter x:Key="DistanceToMarginConverter"/>
|
2024-05-10 17:17:57 -03:00
|
|
|
</UserControl.Resources>
|
2024-05-08 08:41:26 -03:00
|
|
|
|
2024-05-10 20:40:51 -03:00
|
|
|
<Grid>
|
|
|
|
<Canvas>
|
|
|
|
<StackPanel x:Name="RectanglesContainer">
|
|
|
|
<StackPanel.RenderTransform>
|
|
|
|
<RotateTransform Angle="{Binding Angulo}"/>
|
|
|
|
</StackPanel.RenderTransform>
|
|
|
|
<Rectangle x:Name="GuiaSuperior" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}" Height="{Binding AltoGuia, Converter={StaticResource MeterToPixelConverter}}" Fill="Blue"
|
|
|
|
Margin="{Binding Distance, Converter={StaticResource DistanceToMarginConverter}}"/>
|
|
|
|
<Rectangle x:Name="Transporte" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}" Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}" Fill="Gray"
|
|
|
|
Margin="{Binding Distance, Converter={StaticResource DistanceToMarginConverter}}"/>
|
|
|
|
<Rectangle x:Name="GuiaInferior" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}" Height="{Binding AltoGuia, Converter={StaticResource MeterToPixelConverter}}" Fill="Blue"/>
|
|
|
|
</StackPanel>
|
|
|
|
</Canvas>
|
2024-05-08 08:41:26 -03:00
|
|
|
</Grid>
|
|
|
|
</UserControl>
|