示例#1
0
        private async void LoadMoreImple(object obj)
        {
            count++;
            var newList = new WebServiceHelper().GetNewsFeeds(10, count);

            if (newList.Count > 0)
            {
                IsLoadMoreNeed = false;
                Feeds          = new ObservableCollection <NewsFeed>(Feeds.Concat(newList));
            }
            else
            {
                LoadText = "Feed ended";
                await Task.Delay(1500);

                IsLoadMoreNeed = false;
            }
        }