protected override bool OnBackButtonPressed() { if (popupPage != null) { Navigation.RemovePopupPageAsync(popupPage); popupPage = null; return(true); } return(base.OnBackButtonPressed()); }
async void OnShowComment(object sender, EventArgs args) { if (UserTokenSettings.Current.HasExpiresIn()) { MessagingService.Current.SendMessage(MessageKeys.NavigateLogin); } else { var page = new ArticlesCommentPopupPage(articles, new Action <ArticlesComments>(OnResult)); if (page != null && Navigation != null) { await Navigation.PushPopupAsync(page); } } }