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-22 14:21:39 -03:00
|
|
|
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
|
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-22 14:21:39 -03:00
|
|
|
|
|
|
|
<!-- Define the VisualBrush for the conveyor belt pattern -->
|
|
|
|
<VisualBrush x:Key="BeltBrush" TileMode="Tile" Viewport="0,0,20,10" ViewportUnits="Absolute" Viewbox="0,0,20,10" ViewboxUnits="Absolute">
|
|
|
|
<VisualBrush.Transform>
|
|
|
|
<TransformGroup>
|
|
|
|
<TranslateTransform/>
|
|
|
|
</TransformGroup>
|
|
|
|
</VisualBrush.Transform>
|
|
|
|
<VisualBrush.Visual>
|
|
|
|
<Canvas>
|
2024-05-23 14:56:14 -03:00
|
|
|
<Rectangle Fill="#FFBFBFBF" Width="10" Height="10"/>
|
|
|
|
<Rectangle Fill="LightGray" Width="10" Height="10" Canvas.Left="10"/>
|
2024-05-22 14:21:39 -03:00
|
|
|
</Canvas>
|
|
|
|
</VisualBrush.Visual>
|
|
|
|
</VisualBrush>
|
2024-05-10 17:17:57 -03:00
|
|
|
</UserControl.Resources>
|
2024-05-08 08:41:26 -03:00
|
|
|
|
2024-05-22 14:21:39 -03:00
|
|
|
<UserControl.DataContext>
|
|
|
|
<vm:osTransporteGuias/>
|
|
|
|
</UserControl.DataContext>
|
|
|
|
|
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}}"/>
|
2024-05-22 14:21:39 -03:00
|
|
|
<Rectangle x:Name="Transporte" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}" Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Margin="{Binding Distance, Converter={StaticResource DistanceToMarginConverter}}"
|
|
|
|
Fill="{StaticResource BeltBrush}"/>
|
2024-05-10 20:40:51 -03:00
|
|
|
<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>
|