public Window1() { Model = new PlotModel { Title = "Test 1" }; Model.Series.Add(new FunctionSeries(Math.Cos, 0, 10, 0.01)); DataContext = Model; InitializeComponent(); App.AttachDevTools(this); }
public Window2() { Plots = new List <PlotModel>(); for (int i = 0; i < 10; i++) { var p = new PlotModel { Title = "Plot " + i }; p.Series.Add(new FunctionSeries(x => Math.Cos(x * i), 0, 10, 0.01)); Plots.Add(p); } InitializeComponent(); App.AttachDevTools(this); DataContext = Plots; }
public MainWindow() { this.InitializeComponent(); App.AttachDevTools(this); }