コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public MainWindow()
 {
     this.InitializeComponent();
     App.AttachDevTools(this);
 }