38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
/// </summary>
|
|
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();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|