CtrEditor/ObjetosSim/ucBasicExample.xaml

38 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-05-14 13:17:46 -03:00
<UserControl x:Class="CtrEditor.ObjetosSim.ucBasicExample"
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"
2024-05-31 10:06:49 -03:00
>
2024-05-14 13:17:46 -03:00
<UserControl.Resources>
2024-05-31 10:06:49 -03:00
2024-05-14 13:17:46 -03:00
</UserControl.Resources>
<UserControl.DataContext>
<vm:osBasicExample />
</UserControl.DataContext>
2024-05-14 13:17:46 -03:00
<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"/>
2024-05-14 13:17:46 -03:00
</Grid>
2024-05-14 13:17:46 -03:00
</UserControl>