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; } }
private void OnKeyDownHandler(object sender, KeyRoutedEventArgs e) { try { if (e.Key == Windows.System.VirtualKey.F5) { LikersVM.RunLoadMore(); } } catch { } }
private void ItemsLVRefreshRequested(object sender, EventArgs e) { LikersVM?.RunLoadMore(true); }
private void RefreshControlRefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args) { using (var RefreshCompletionDeferral = args.GetDeferral()) LikersVM.RunLoadMore(); }