Skip to content

Add incremental loading sample page and documentation#410

Merged
w-ahmad merged 1 commit into
mainfrom
w-ahmad-incremental-loading-sample-and-docs
Jul 10, 2026
Merged

Add incremental loading sample page and documentation#410
w-ahmad merged 1 commit into
mainfrom
w-ahmad-incremental-loading-sample-and-docs

Conversation

@w-ahmad

@w-ahmad w-ahmad commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Why

TableView already supports incremental loading - its internal collection view forwards HasMoreItems and LoadMoreItemsAsync to any ItemsSource implementing ISupportIncrementalLoading - but this was undocumented, and the performance guide incorrectly stated the feature was unsupported. There was also no sample demonstrating it.

What's changed

Sample app

  • New IncrementalLoadingSource - an ObservableCollection<ExampleModel> implementing ISupportIncrementalLoading that simulates fetching pages from a remote service (750 ms delay, capped at 1,000 items).
  • New IncrementalLoadingPage using SamplePresenter, with IncrementalLoadingTrigger/IncrementalLoadingThreshold/DataFetchSize set on the TableView, an options panel showing loaded item count, HasMoreItems state, and an indeterminate progress bar while a page loads. XAML and C# source snippets included.
  • Wired a new "Incremental Loading" navigation item into MainWindow.

Docs

  • New docs/docs/incremental-loading.md covering how to implement an incremental source, the inherited ListView loading properties, manual loading from code, and caveats (sorting/filtering/clipboard/export operate only on loaded items).
  • Added the article to the toc under Data.
  • Fixed the outdated note in performance.md that claimed ISupportIncrementalLoading was not supported.

- New IncrementalLoadingPage in sample app with simulated paged data source
- New docs/docs/incremental-loading.md article with toc entry
- Fix outdated performance.md note claiming incremental loading is unsupported

Co-authored-by: Copilot App <[email protected]>
@w-ahmad
w-ahmad merged commit 27934c6 into main Jul 10, 2026
11 checks passed
@w-ahmad
w-ahmad deleted the w-ahmad-incremental-loading-sample-and-docs branch July 10, 2026 22:41
@w-ahmad w-ahmad mentioned this pull request Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant