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

            _plotView  = new PlotView(Context);
            _chart     = e.NewElement;
            _viewModel = _chart.BindingContext as IStatisticsPageViewModel;
            _viewModel.PropertyChanged += ViewModelPropertyChanged;

            SetNativeControl(_plotView);
        }
		public StatisticsPage(IStatisticsPageViewModel viewModel)
		{
			_viewModel = viewModel;
			BindingContext = _viewModel;
			CreateUI();
		}
Beispiel #3
0
 public StatisticsPage(IStatisticsPageViewModel viewModel)
 {
     _viewModel     = viewModel;
     BindingContext = _viewModel;
     CreateUI();
 }