Example #1
0
        private async void LoadOldTweets(object sender, EventArgs eventArgs)
        {
            LoadOldTL_timer.Stop();
            var tweet = tweets[tweets.Count - 1];

            var param = new Dictionary <string, object>()
            {
                { "count", 10 },
                { "tweet_mode", TweetMode.Extended },
                { "max_id", tweet.TweetID - 1 }
            };

            await GetTimeLine(param);
        }
Example #2
0
        private void ScrollChanged(object sender, ScrollChangedEventArgs e)
        {
            var count = ((ScrollViewer)sender).ScrollableHeight - 5;

            if (count <= 10)
            {
                return;
            }

            if (e.VerticalOffset >= count)
            {
                LoadOldTL_timer.Start();
            }
            else if (LoadOldTL_timer.IsEnabled)
            {
                LoadOldTL_timer.Stop();
            }
        }