38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
<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"
|
|
mc:Ignorable="d"
|
|
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
|
|
xmlns:convert="clr-namespace:CtrEditor.Convertidores">
|
|
|
|
<UserControl.Resources>
|
|
<convert:MeterToPixelConverter x:Key="MeterToPixelConverter"/>
|
|
</UserControl.Resources>
|
|
|
|
<UserControl.DataContext>
|
|
<vm:osVMmotorSim ImageSource_oculta="/imagenes/motorNegro.png" />
|
|
</UserControl.DataContext>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Row="0" Content="{Binding Nombre}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="Transparent"
|
|
Foreground="Black"/>
|
|
|
|
<Image Grid.Row="1" Source="{Binding ImageSource_oculta}"
|
|
Width="{Binding Tamano, Converter={StaticResource MeterToPixelConverter}}"
|
|
Height="{Binding Tamano, Converter={StaticResource MeterToPixelConverter}}"
|
|
Stretch="Uniform"/>
|
|
</Grid>
|
|
|
|
</UserControl>
|