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(); }
public StatisticsPage(IStatisticsPageViewModel viewModel) { _viewModel = viewModel; BindingContext = _viewModel; CreateUI(); }