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

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
All reactions