private void LVItemsLVLoaded(object sender, RoutedEventArgs e) { var scroll = LVItemsLV.FindScrollViewer(); if (scroll != null) { scroll.ViewChanging += ScrollViewViewChanging; } TVVM.SetLV(scroll); }
private void ExploreClusterViewLoaded(object sender, RoutedEventArgs e) { try { try { RefreshControl.RefreshRequested -= RefreshControlRefreshRequested; RefreshControl.Visualizer.RefreshStateChanged -= RefreshControlRefreshStateChanged; } catch { } RefreshControl.RefreshRequested += RefreshControlRefreshRequested; if (RefreshControl.Visualizer != null) { RefreshControl.Visualizer.RefreshStateChanged += RefreshControlRefreshStateChanged; } //if (Cluster == null) return; if (NavigationMode == NavigationMode.Back) { //if (ExploreClusterVM.ClusterName.ToLower() == Cluster.Name.ToLower()) // return; } else if (NavigationMode == NavigationMode.New) { GetType().RemovePageFromBackStack(); NavigationCacheMode = NavigationCacheMode.Enabled; CanLoadFirstPopUp = false; } if (!CanLoadFirstPopUp) { TVVM.ResetCache(); TVVM.RunLoadMore(true); //ScrollableExplorePostUc.SetData(TVVM, -1); CanLoadFirstPopUp = true; RunSearch(); } } catch { } }
private void RefreshControlRefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args) { using (var RefreshCompletionDeferral = args.GetDeferral()) TVVM.RunLoadMore(true); }