UWPコミュニティツールキット
using Microsoft.Toolkit.Uwp;
public class Person
{
public string Name { get; set; }
}
public class PeopleSource : IIncrementalSource<Person>
{
private readonly List<Person> people;
public async Task<IEnumerable<InfoOverView>> GetPagedItemsAsync(int pageIndex, int pageSize, CancellationToken cancellationToken = default(CancellationToken))
{
return AddItems();
}
public void AddItems()
{
people.Clear();
//Code to add the additional items in the people List
return people;
}
}
//In Page.xaml.cs
public Page()
{
this.InitializeComponent();
var collection = new IncrementalLoadingCollection<PeopleSource, Person>();
MasterDetailsViewPanel.ItemsSource = collection;
}
で使用
Incremental Loading Collection Helpers
、あなたの質問を絞り込む私たちにいくつかのコードを表示し、私たちはあなたと苦労しているコードのどの部分お知らせください。あなたは 'ListView到達の終わり 'とは何を考えていますか?ユーザーは全部スクロールしましたか?または、あなたのコードは、ListViewの読み込みを完了ですか? –@ blaze_125質問に追加されました。コードには何もありません。ObservableCollectionからアイテムを受け取るListViewだけです。 –
これを見て - > [handling-scroll-event-on-c-sharp-list](https://stackoverflow.com/questions/1851620/handling-scroll-event-on-listview-in)を参照してください。 -c-sharp)これはUWP固有ではありませんが、それはあなたが行くのを助けるかもしれません。 –