protected async override void OnAppearing() { Analytics.TrackEvent("SessionsByTimePage"); base.OnAppearing(); //Workaround here BindingContext = viewModel = Startup.ServiceProvider?.GetService <SessionsByTimeViewModel>() ?? new SessionsByTimeViewModel(); await Refresh(); }
public SessionsByTimePage() { InitializeComponent(); //TODO: Navigation is via the view, not the viewmodel... rework this eventually. BindingContext = viewModel = Startup.ServiceProvider?.GetService <SessionsByTimeViewModel>() ?? new SessionsByTimeViewModel(); }