Exemple #1
0
 /// <summary>
 /// 手势结束
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void GestureListener_GestureCompleted(object sender, Microsoft.Phone.Controls.GestureEventArgs e)
 {
     if (isVerticalDrag || AppSetting.HightDragSensitivity)
     {
         var scrollviewer = AppSetting.FindChildOfType <ScrollViewer>(TweetListBox);
         if (scrollviewer == null)
         {
             return;
         }
         //到底部
         if (Math.Abs(scrollviewer.VerticalOffset - scrollviewer.ScrollableHeight) < 2)
         {
             GetNextPage();
         }
         ////顶部
         //else if (scrollviewer.VerticalOffset < 0.000001)
         //{
         //    GetLastest();
         //}
     }
 }