protected override void OnBindingContextChanged() { _viewModel = BindingContext as XTabbedPageViewModel; if (_viewModel == null) { throw new ArgumentException("BindingContext must be XTabbedPageViewModel"); } ItemsSource = _viewModel.SectionViewModels; base.OnBindingContextChanged(); }