42 lines
2.0 KiB
XML
42 lines
2.0 KiB
XML
<UserControl x:Class="CtrEditor.ObjetosSim.Traces.ucTrace3"
|
|
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"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:convert="clr-namespace:CtrEditor.Convertidores"
|
|
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim.Traces"
|
|
mc:Ignorable="d" Background="#FFECECEC">
|
|
|
|
<UserControl.Resources>
|
|
<convert:MeterToPixelConverter x:Key="MeterToPixelConverter"/>
|
|
</UserControl.Resources>
|
|
|
|
<UserControl.DataContext>
|
|
<vm:osTrace3 Descripcion_Serie_1="Serie 1" Max_Cantidad_Elementos="100"/>
|
|
</UserControl.DataContext>
|
|
|
|
|
|
<Grid Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}" Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<!-- Title -->
|
|
<RowDefinition Height="*"/>
|
|
<!-- Chart Area -->
|
|
<RowDefinition Height="Auto"/>
|
|
<!-- Descriptions -->
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" Text="{Binding Titulo}" FontSize="16" HorizontalAlignment="Center" Margin="10"/>
|
|
|
|
<Canvas Grid.Row="1" x:Name="ChartCanvas" Background="White" Margin="10"/>
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="10">
|
|
<TextBlock Text="{Binding Descripcion_Serie_1}" Margin="10" Foreground="{Binding Color_Serie_1}"/>
|
|
<TextBlock Text="{Binding Descripcion_Serie_2}" Margin="10" Foreground="{Binding Color_Serie_2}"/>
|
|
<TextBlock Text="{Binding Descripcion_Serie_3}" Margin="10" Foreground="{Binding Color_Serie_3}"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|