CtrEditor/ObjetosSim/Traces/ucTrace3.xaml

40 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2024-05-31 10:06:49 -03:00
<UserControl x:Class="CtrEditor.ObjetosSim.ucTrace3"
2024-05-27 05:34:20 -03:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:ei="http://schemas.microsoft.com/xaml/behaviors"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2024-05-31 10:06:49 -03:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Background="#FFECECEC"
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
mc:Ignorable="d">
2024-05-27 05:34:20 -03:00
<UserControl.DataContext>
<vm:osTrace3 Descripcion_Serie_1="Serie 1" Max_Cantidad_Elementos="100"/>
</UserControl.DataContext>
2024-05-30 13:48:37 -03:00
<Grid Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}"
Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}">
2024-05-27 05:34:20 -03:00
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<!-- Title -->
<RowDefinition Height="*"/>
<!-- Chart Area -->
<RowDefinition Height="Auto"/>
<!-- Descriptions -->
</Grid.RowDefinitions>
2024-05-30 13:48:37 -03:00
<TextBlock Grid.Row="0" Text="{Binding Titulo}" FontSize="10" HorizontalAlignment="Center"/>
2024-05-27 05:34:20 -03:00
2024-05-30 13:48:37 -03:00
<Canvas Grid.Row="1" x:Name="ChartCanvas" Background="White" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}" />
2024-05-27 05:34:20 -03:00
2024-05-30 13:48:37 -03:00
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" >
<TextBlock Text="{Binding Descripcion_Serie_1}" Margin="1" FontSize="8" Foreground="{Binding Color_Serie_1}"/>
<TextBlock Text="{Binding Descripcion_Serie_2}" Margin="1" FontSize="8" Foreground="{Binding Color_Serie_2}"/>
<TextBlock Text="{Binding Descripcion_Serie_3}" Margin="1" FontSize="8" Foreground="{Binding Color_Serie_3}"/>
2024-05-27 05:34:20 -03:00
</StackPanel>
</Grid>
</UserControl>