Replies: 1 comment
-
I don't speak Russian, but it seems that your XAML is not able to find the ViewModel, ensure your namespace is correct, I will close this for now. I will move this to a discussion since this is not an issue with the library, maybe you can find help there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I did everything as written
https://livecharts.dev/docs/WPF/2.0.0-rc2/samples.lines.basic
`using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfSample
{
///
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
namespace WpfSample
using LiveChartsCore.SkiaSharpView;
{
public partial class View:UserControl
{
public View()
{
InitializeComponent();
}
}
}
using LiveChartsCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using LiveChartsCore.SkiaSharpView.Painting;
using SkiaSharp;
using LiveChartsCore.SkiaSharpView.VisualElements;
namespace WpfSample
{
public class ViewModel : ObservableObject
{
public ISeries[] Series { get; set; } =
{
new LineSeries
{
Values = new double[] { 2, 1, 3, 5, 3, 4, 6 },
Fill = null
}
};
}

`
What is missing, why is it not working? Why is there no normal explanation?
Beta Was this translation helpful? Give feedback.
All reactions