Ejemplo n.º 1
0
        private void LikedPostViewLoaded(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 (NavigationMode == NavigationMode.New)
                {
                    GetType().RemovePageFromBackStack();
                    NavigationCacheMode = NavigationCacheMode.Enabled;
                    CanLoadFirstPopUp   = false;
                }
                if (!CanLoadFirstPopUp)
                {
                    TaggedYouVM.ResetCache();
                    TaggedYouVM.RunLoadMore(true);
                    ScrollableTaggedPostUc.SetData(TaggedYouVM, -1);
                    CanLoadFirstPopUp = true;
                }
            }
            catch { }
        }
Ejemplo n.º 2
0
 private void RefreshControlRefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args)
 {
     using (var RefreshCompletionDeferral = args.GetDeferral())
         TaggedYouVM.RunLoadMore(true);
 }