oxyplot 入门

  1. 界面






  2. viewmodel

public class MainViewModel
{
public MainViewModel()
{
this.Title = "Example 2";
this.Points = new List
{
new DataPoint(0, 4),
new DataPoint(10, 13),
new DataPoint(20, 15),
new DataPoint(30, 16),
new DataPoint(40, 12),
new DataPoint(50, 12)
};
}
public string Title { get; private set; }
public IList Points { get; private set; }
}

  1. logic
    this.DataContext = new MainViewModel();

你可能感兴趣的:(oxyplot 入门)