2024-05-11 11:58:55 -03:00
|
|
|
<UserControl x:Class="CtrEditor.ObjetosSim.ucVMmotorSim"
|
|
|
|
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:local="clr-namespace:CtrEditor.ObjetosSim"
|
2024-05-22 14:21:39 -03:00
|
|
|
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
|
2024-05-31 10:06:49 -03:00
|
|
|
mc:Ignorable="d">
|
2024-05-11 11:58:55 -03:00
|
|
|
|
2024-05-22 14:21:39 -03:00
|
|
|
|
|
|
|
<UserControl.DataContext>
|
2024-06-04 12:33:00 -03:00
|
|
|
<vm:osVMmotorSim ImageSource_oculta="/imagenes/motorNegro.png"/>
|
2024-05-22 14:21:39 -03:00
|
|
|
</UserControl.DataContext>
|
|
|
|
|
2024-06-04 12:33:00 -03:00
|
|
|
<Grid RenderTransformOrigin="0,0">
|
|
|
|
<Grid.RenderTransform>
|
|
|
|
<TransformGroup>
|
|
|
|
<RotateTransform Angle="{Binding Angulo}"/>
|
|
|
|
</TransformGroup>
|
|
|
|
</Grid.RenderTransform>
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2024-05-22 14:21:39 -03:00
|
|
|
|
2024-06-04 12:33:00 -03:00
|
|
|
<Image Grid.Column="0" Source="{Binding ImageSource_oculta}"
|
|
|
|
Width="{Binding Tamano, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Height="{Binding Tamano, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Stretch="Uniform"/>
|
|
|
|
|
|
|
|
<Viewbox Grid.Column="1" Stretch="Uniform">
|
|
|
|
<Label Content="{Binding Nombre}"
|
2024-05-22 14:21:39 -03:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Background="Transparent"
|
2024-06-04 12:33:00 -03:00
|
|
|
Foreground="Black"
|
|
|
|
Opacity="0.5"/>
|
|
|
|
</Viewbox>
|
2024-05-11 11:58:55 -03:00
|
|
|
</Grid>
|
|
|
|
|
2024-06-04 12:33:00 -03:00
|
|
|
|
2024-05-11 11:58:55 -03:00
|
|
|
</UserControl>
|