protected override void OnNavigatedTo(NavigationEventArgs e) { if (!string.IsNullOrEmpty(ViewModelBase.CurrentStoryId)) { CommentListView.SetRefresh(true); } }
private void CommentPage_Loaded(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(ViewModelBase.CurrentStoryId)) { CommentListView.SetRefresh(true); } }
private async void RefreshCommentList() { VM.IsRefreshing = true; await VM.RequestComments(false); CommentListView.SetRefresh(false); VM.IsRefreshing = false; }
private async void SendComment() { if (!AuthorizationHelper.IsLogin) { PopupMessage.DisplayMessageInRes("NeedLogin"); return; } if (string.IsNullOrEmpty(VM.CommentContent)) { return; } await VM.SendComment(); VM.CommentContent = ""; CommentListView.SetRefresh(true); }
private async void RefreshCommentList() { await VM.RequestComments(false); CommentListView.SetRefresh(false); }