Ejemplo n.º 1
0
        protected override void OnBindingContextChanged()
        {
            _viewModel = BindingContext as XTabbedPageViewModel;

            if (_viewModel == null)
            {
                throw new ArgumentException("BindingContext must be XTabbedPageViewModel");
            }

            ItemsSource = _viewModel.SectionViewModels;

            base.OnBindingContextChanged();
        }
Ejemplo n.º 2
0
        protected override void OnBindingContextChanged()
        {
            _viewModel = BindingContext as XTabbedPageViewModel;

            if (_viewModel == null)
            {
                throw new ArgumentException("BindingContext must be XTabbedPageViewModel");
            }

            ItemsSource = _viewModel.SectionViewModels;

            base.OnBindingContextChanged();
        }