protected override void OnAppearing() { base.OnAppearing(); termValue = Term; ViewModelTermPage viewModel = new ViewModelTermPage(termValue); viewModel.ShowCourses(); }
public TermPage (Term term) { InitializeComponent (); termValue = term; ViewModelTermPage viewModel = new ViewModelTermPage(term); BindingContext = viewModel; CourseListView.IsPullToRefreshEnabled = true; CourseListView.SetBinding(ListView.IsRefreshingProperty, nameof(viewModel.IsBusy)); }