Incremental Loading Behavior for ItemsView #532
Replies: 5 comments 6 replies
-
|
based on this idea, I have created a custom |
Beta Was this translation helpful? Give feedback.
-
|
this code works well in my project currently. my latest WinUI SDK version is |
Beta Was this translation helpful? Give feedback.
-
|
@Poker-sang You may be looking for something like the |
Beta Was this translation helpful? Give feedback.
-
|
@Arlodotexe I wrote a sample to explain my thought: As this gif shows. This behavior is intended to give the Since |
Beta Was this translation helpful? Give feedback.
-
|
I would have just PR this feature, but I couldn't figure out how to add a new project🥺 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The new control
ItemsViewwhich can replaceListView&GridView, does not supportISupportIncrementalLoading. So, we can do this with a new behavior. When theScrollView's view changes, the behavior try to raiseLoadMoreItemsAsyncif needed.New APIs
classDiagram class IncrementalLoadingBehavior { bool IsActive bool IsLoadingMore double LoadingOffset int LoadCount event LoadMoreRequested TryRaiseLoadMoreRequestedAsync() }Core Method
Beta Was this translation helpful? Give feedback.
All reactions