private async void LoadMoreComments() { if (_isLoadComplete) { CommentListView.FinishLoadingMore(); return; } var preCount = VM.CurrentCommentCount; await VM.RequestComments(true); CommentListView.FinishLoadingMore(); _isLoadComplete = preCount == VM.CurrentCommentCount; }
private async void LoadMoreComments() { if (_isLoadComplete || VM.IsRefreshing) { CommentListView.FinishLoadingMore(); return; } var preCount = VM.TotalCount; await VM.RequestComments(true); CommentListView.FinishLoadingMore(); _isLoadComplete = preCount == VM.TotalCount; }
private async void LoadMoreComments() { await VM.RequestComments(true); CommentListView.FinishLoadingMore(); }