2024-05-04 06:00:52 -03:00
|
|
|
<UserControl x:Class="CtrEditor.ObjetosSim.ucTransporteTTop"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-05-22 14:21:39 -03:00
|
|
|
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"
|
2024-05-22 06:19:31 -03:00
|
|
|
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
|
2024-05-31 10:06:49 -03:00
|
|
|
mc:Ignorable="d">
|
2024-05-22 06:19:31 -03:00
|
|
|
|
2024-05-08 08:41:26 -03:00
|
|
|
<UserControl.Resources>
|
2024-05-22 06:19:31 -03:00
|
|
|
<!-- Define the VisualBrush for the conveyor belt pattern -->
|
2024-05-22 14:21:39 -03:00
|
|
|
<VisualBrush x:Key="BeltBrush" TileMode="Tile" Viewport="0,0,20,10" ViewportUnits="Absolute" Viewbox="0,0,20,10" ViewboxUnits="Absolute">
|
2024-05-22 06:19:31 -03:00
|
|
|
<VisualBrush.Transform>
|
2024-05-22 14:21:39 -03:00
|
|
|
<TransformGroup>
|
|
|
|
<TranslateTransform/>
|
|
|
|
</TransformGroup>
|
2024-05-22 06:19:31 -03:00
|
|
|
</VisualBrush.Transform>
|
|
|
|
<VisualBrush.Visual>
|
|
|
|
<Canvas>
|
2025-01-04 06:34:19 -03:00
|
|
|
<Rectangle Fill="LightGray" Width="10" Height="10"/>
|
|
|
|
<Rectangle Fill="GhostWhite" Width="10" Height="10" Canvas.Left="10"/>
|
2024-05-22 06:19:31 -03:00
|
|
|
</Canvas>
|
|
|
|
</VisualBrush.Visual>
|
|
|
|
</VisualBrush>
|
2024-05-08 08:41:26 -03:00
|
|
|
</UserControl.Resources>
|
2024-05-10 20:40:51 -03:00
|
|
|
|
2024-05-22 06:19:31 -03:00
|
|
|
<UserControl.DataContext>
|
|
|
|
<vm:osTransporteTTop Ancho="2"/>
|
|
|
|
</UserControl.DataContext>
|
|
|
|
|
2025-01-04 06:34:19 -03:00
|
|
|
<Canvas RenderTransformOrigin="0,0">
|
|
|
|
<Canvas.RenderTransform>
|
|
|
|
<TransformGroup>
|
|
|
|
<ScaleTransform />
|
|
|
|
<SkewTransform />
|
|
|
|
<RotateTransform Angle="{Binding Angulo}" />
|
|
|
|
<TranslateTransform />
|
|
|
|
</TransformGroup>
|
|
|
|
</Canvas.RenderTransform>
|
|
|
|
<Rectangle x:Name="Transporte"
|
2024-05-22 06:19:31 -03:00
|
|
|
Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Fill="{StaticResource BeltBrush}">
|
2024-05-10 20:40:51 -03:00
|
|
|
</Rectangle>
|
2025-01-04 06:34:19 -03:00
|
|
|
<Viewbox Canvas.Top="{Binding AltoGuia, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}" Stretch="Uniform">
|
|
|
|
<Label Content="{Binding Nombre}" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"
|
|
|
|
FontSize="18" Opacity="0.9" />
|
|
|
|
</Viewbox>
|
2024-05-04 10:53:47 -03:00
|
|
|
</Canvas>
|
2024-05-22 14:21:39 -03:00
|
|
|
</UserControl>
|