CtrEditor/ObjetosSim/Traces/ucTraceSimple.xaml

26 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-05-27 05:34:20 -03:00
<UserControl x:Class="CtrEditor.ObjetosSim.Traces.ucTraceSimple"
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"
mc:Ignorable="d"
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim.Traces"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
xmlns:convert="clr-namespace:CtrEditor.Convertidores">
<UserControl.Resources>
<convert:MeterToPixelConverter x:Key="MeterToPixelConverter"/>
</UserControl.Resources>
<UserControl.DataContext>
<vm:osTraceSimple Alto="3" Ancho="6"/>
</UserControl.DataContext>
<Grid>
<lvc:CartesianChart Width="{Binding Ancho, Converter={StaticResource MeterToPixelConverter}}"
Height="{Binding Alto, Converter={StaticResource MeterToPixelConverter}}"
Name="SignalChart" Series="{Binding Series}">
</lvc:CartesianChart>
</Grid>
</UserControl>