Ejemplo n.º 1
0
        //can not use x:Bind to bind a override or new method
        public async void LoadMoreNew()
        {
            if (_isLoading || !_hasMore)
            {
                return;
            }
            _isLoading = true;
            try
            {
                var list = await LoadMoreOverride();

                lock (WeiboList)
                {
                    list.ToList().ForEach(item => WeiboList.Insert(0, item));
                }
            }
            catch (Exception e) when(e is HttpRequestException || e is WebException)
            {
                OnWebException(e);
            }
            _isLoading = false;
        }