2024-05-25 07:53:34 -03:00
|
|
|
<UserControl x:Class="CtrEditor.ObjetosSim.ucPhotocell"
|
2024-05-19 14:56:08 -03:00
|
|
|
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.UserControls"
|
2024-05-25 07:53:34 -03:00
|
|
|
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
|
2024-05-31 10:06:49 -03:00
|
|
|
mc:Ignorable="d">
|
2024-05-19 14:56:08 -03:00
|
|
|
|
|
|
|
|
2024-05-22 14:21:39 -03:00
|
|
|
<UserControl.DataContext>
|
2024-06-28 14:47:08 -03:00
|
|
|
<vm:osPhotocell Color="#FFCA1C1C" Ancho="0.8" Nombre="PTH" Alto="0.04" />
|
2024-05-22 14:21:39 -03:00
|
|
|
</UserControl.DataContext>
|
|
|
|
|
2024-05-21 07:52:44 -03:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2024-06-28 14:47:08 -03:00
|
|
|
<ColumnDefinition
|
|
|
|
Width="{Binding Alto, Converter={StaticResource MeterToPixelConverter}, ConverterParameter=5}" />
|
2024-05-21 07:52:44 -03:00
|
|
|
<!-- Columna para el Label -->
|
2024-06-04 12:33:00 -03:00
|
|
|
<ColumnDefinition Width="Auto"/>
|
2024-05-21 07:52:44 -03:00
|
|
|
<!-- Columna para la Image -->
|
2024-06-04 12:33:00 -03:00
|
|
|
<ColumnDefinition Width="Auto"/>
|
2024-05-21 07:52:44 -03:00
|
|
|
<!-- Columna para el Rectangle -->
|
|
|
|
</Grid.ColumnDefinitions>
|
2024-06-04 12:33:00 -03:00
|
|
|
|
2024-05-21 07:52:44 -03:00
|
|
|
<Grid.RenderTransform>
|
|
|
|
<RotateTransform Angle="{Binding Angulo}" CenterX="0" CenterY="0"/>
|
|
|
|
</Grid.RenderTransform>
|
|
|
|
|
|
|
|
<!-- Label en la primera columna -->
|
2024-06-04 12:33:00 -03:00
|
|
|
<Viewbox Grid.Column="0" Stretch="UniformToFill">
|
|
|
|
<Label Content="{Binding Nombre}"
|
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.8" FontWeight="Bold" Foreground="{Binding Color}"/>
|
|
|
|
</Viewbox>
|
2024-05-22 14:21:39 -03:00
|
|
|
|
2024-06-28 14:47:08 -03:00
|
|
|
<Image Source="/Icons/fotocelula.png"
|
|
|
|
Width="{Binding Alto, Converter={StaticResource MeterToPixelConverter}, ConverterParameter=2}"
|
2024-06-04 12:33:00 -03:00
|
|
|
Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}, ConverterParameter=2}"
|
2024-06-28 14:47:08 -03:00
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="2,2,2,2" Grid.Column="1"/>
|
2024-05-19 14:56:08 -03:00
|
|
|
|
2024-09-12 11:43:39 -03:00
|
|
|
<Rectangle x:Name="Photocell" Grid.Column="2" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}, ConverterParameter=0.9}"
|
|
|
|
Height="{Binding Ancho_Haz_De_Luz, Converter={StaticResource MeterToPixelConverter}}">
|
2024-05-21 07:52:44 -03:00
|
|
|
<Rectangle.Fill>
|
|
|
|
<VisualBrush x:Name="MovingPattern" TileMode="Tile" Viewport="0,0,3,3" ViewportUnits="Absolute" Viewbox="0,0,3,3" ViewboxUnits="Absolute">
|
|
|
|
<VisualBrush.Visual>
|
|
|
|
<Canvas>
|
2024-06-28 14:47:08 -03:00
|
|
|
<Ellipse
|
|
|
|
Width="1"
|
|
|
|
Height="1" Fill="{Binding Color}"/>
|
2024-05-21 07:52:44 -03:00
|
|
|
</Canvas>
|
|
|
|
</VisualBrush.Visual>
|
|
|
|
</VisualBrush>
|
|
|
|
</Rectangle.Fill>
|
|
|
|
</Rectangle>
|
|
|
|
</Grid>
|
2024-05-19 14:56:08 -03:00
|
|
|
|
2024-06-04 12:33:00 -03:00
|
|
|
|
2024-05-21 07:52:44 -03:00
|
|
|
</UserControl>
|