示例#1
0
 private void LikersViewLoaded(object sender, RoutedEventArgs e)
 {
     if (NavigationMode == NavigationMode.Back && LikersVM.Media != null)
     {
         if (LikersVM.Media.InstaIdentifier == Media.InstaIdentifier)
         {
             return;
         }
     }
     else if (NavigationMode == NavigationMode.New)
     {
         NavigationCacheMode = NavigationCacheMode.Enabled;
         CanLoadFirstPopUp   = false;
     }
     if (!CanLoadFirstPopUp)
     {
         if (ScrollView == null)
         {
             //if (NavigationMode == NavigationMode.Back) return;
             ScrollView = ItemsLV.FindScrollViewer();
             ScrollView.ViewChanging += ScrollViewViewChanging;
         }
         LikersVM.ResetCache();
         LikersVM.SetMedia(Media);
         LikersVM.RunLoadMore();
         ToggleGoUpButtonAnimation(false);
         CanLoadFirstPopUp = true;
     }
 }
示例#2
0
 private void OnKeyDownHandler(object sender, KeyRoutedEventArgs e)
 {
     try
     {
         if (e.Key == Windows.System.VirtualKey.F5)
         {
             LikersVM.RunLoadMore();
         }
     }
     catch { }
 }
示例#3
0
 private void ItemsLVRefreshRequested(object sender, EventArgs e)
 {
     LikersVM?.RunLoadMore(true);
 }
示例#4
0
 private void RefreshControlRefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args)
 {
     using (var RefreshCompletionDeferral = args.GetDeferral())
         LikersVM.RunLoadMore();
 }