private void ItemsLVRefreshRequested(object sender, EventArgs e) { try { FollowRequestsVM.RunLoadMore(true); } catch { } }
private void FollowRequestsViewLoaded(object sender, RoutedEventArgs e) { try { RefreshControl.RefreshRequested -= RefreshControlRefreshRequested; RefreshControl.Visualizer.RefreshStateChanged -= RefreshControlRefreshStateChanged; } catch { } RefreshControl.RefreshRequested += RefreshControlRefreshRequested; if (RefreshControl.Visualizer != null) { RefreshControl.Visualizer.RefreshStateChanged += RefreshControlRefreshStateChanged; } if (!IsLoadedBefore) { IsLoadedBefore = true; FollowRequestsVM.RunLoadMore(true); } }
private void RefreshControlRefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args) { using (var RefreshCompletionDeferral = args.GetDeferral()) FollowRequestsVM.RunLoadMore(true); }