protected override void OnElementChanged (ElementChangedEventArgs<View> e)
		{
			base.OnElementChanged (e);

			var plotView = new PlotView (Context);

			NativeElement.OnInvalidateDisplay = (s,ea) => {
				plotView.Invalidate();
			};

			SetNativeControl (plotView);

			NativeControl.Model = NativeElement.Model;

			NativeControl.SetBackgroundColor (NativeElement.BackgroundColor.ToAndroid ());
		}
Beispiel #2
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			this.RequestWindowFeature (WindowFeatures.NoTitle);

			var plotView = new PlotView(this) {
				Model = myClass.MyModel
			};

			this.AddContentView (
				plotView, 
				new ViewGroup.LayoutParams (
					ViewGroup.LayoutParams.FillParent, 
					ViewGroup.LayoutParams.FillParent));
		}