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