using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Microsoft.Windows.AppNotifications; // To learn more about WinUI, the WinUI project structure, // and more about our project templates, see: http://aka.ms/winui-project-info. namespace wakka { /// /// An empty page that can be used on its own or navigated to within a Frame. /// public sealed partial class FeelsFeedPage : Page { public FeelsFeedPage() { this.InitializeComponent(); feelsListView.ItemsSource = Feels.LoadedFeelsPosts; } private void ViewChanged(object sender, ScrollViewerViewChangedEventArgs e) { var scrollViewer = sender as ScrollViewer; if (scrollViewer != null) { if (scrollViewer.VerticalOffset >= scrollViewer.ScrollableHeight) { Feels.LoadFeelsChunk(); } } } } }