public override async void Activate(object parameter) { IsBusy = true; if (!await userService.EnsureLoggedInAsync()) { return; } // Ensures user's information is notificated to the UI. RaisePropertyChanged(() => User); try { var postId = parameter.ToString(); Post = await timelineService.GetPostAsync(postId); if (Post == null) { NavigationService.GoBack(); return; } } catch { await DialogService.AlertAsync("An error occurred while getting post details."); NavigationService.GoBack(); } finally { IsBusy = false; } base.Activate(parameter); }