Ejemplo n.º 1
0
 public override void WindowDidLoad ()
 {
     base.WindowDidLoad ();
     var frame = new CGRect (10, 10, 300, 300);
     var plotView = new PlotView (frame);
     var model = new PlotModel{ Title = "Hello Mac!" };
     model.Axes.Add (new LinearAxis { Position = AxisPosition.Bottom });
     model.Axes.Add (new LinearAxis { Position = AxisPosition.Left });
     model.Series.Add (new FunctionSeries (Math.Sin, 0, 10, 200));
     plotView.Model = model;
     Window.ContentView = plotView;
     Window.Title = "OxyPlot on Xamarin.Mac (Unified API)";
 }
Ejemplo n.º 2
0
 public override void WindowDidLoad ()
 {
     base.WindowDidLoad ();
     plotView = new PlotView (this.Window.Frame);
     Window.ContentView = plotView;
 }