Beispiel #1
0
        private async void LoadMoreComments()
        {
            if (_isLoadComplete)
            {
                CommentListView.FinishLoadingMore();
                return;
            }

            var preCount = VM.CurrentCommentCount;
            await VM.RequestComments(true);

            CommentListView.FinishLoadingMore();
            _isLoadComplete = preCount == VM.CurrentCommentCount;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        private async void LoadMoreComments()
        {
            await VM.RequestComments(true);

            CommentListView.FinishLoadingMore();
        }