private void ReplyListView_RefreshRequested(object sender, RefreshRequestedEventArgs e)
        {
            if (RightWrap.DataContext == null)
            {
                return;
            }

            if (RightWrap.DataContext.GetType().Equals(typeof(ReplyListViewForDefaultViewModel)))
            {
                var vm = RightWrap.DataContext as ReplyListViewForDefaultViewModel;
                vm.LoadPrevPageData();
            }
            else if (RightWrap.DataContext.GetType().Equals(typeof(ReplyListViewForSpecifiedPostViewModel)))
            {
                var vm = RightWrap.DataContext as ReplyListViewForSpecifiedPostViewModel;
                vm.LoadPrevPageData();
            }

            if (SpinnerStoryboard2.GetCurrentState() != ClockState.Stopped)
            {
                SpinnerStoryboard2.Stop();
            }
        }
 private void ReplyListView_PullProgressChanged(object sender, RefreshProgressEventArgs e)
 {
     if (e.IsRefreshable)
     {
         if (e.PullProgress == 1)
         {
             // Progress = 1.0 means that the refresh has been triggered.
             if (SpinnerStoryboard2.GetCurrentState() == Windows.UI.Xaml.Media.Animation.ClockState.Stopped)
             {
                 SpinnerStoryboard2.Begin();
             }
         }
         else if (SpinnerStoryboard2.GetCurrentState() != Windows.UI.Xaml.Media.Animation.ClockState.Stopped)
         {
             SpinnerStoryboard2.Stop();
         }
         else
         {
             // Turn the indicator by an amount proportional to the pull progress.
             SpinnerTransform2.Angle = e.PullProgress * 360;
         }
     }
 }