From the course: .NET MAUI: Beyond the Basics

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Dealing with large lists

Dealing with large lists

- Lists of data that take a long time to load need special handling. Consider the two examples we have here. On the left, we have a situation where there is nothing special being done to handle such a list. The data is loaded immediately, and then views are immediately created for each item in the list. If you remember our earlier discussion about the flex layout an item source can be used to bind a list to the layout, and when the page is rendered views will be created for all items in the list. Contrast that to what we have on the right. This is a pretty common pattern on mobile platforms with the UI list view in iOS, and the list view or recycler view on Android. All of the views are not created at once. In fact, just the views needed to fit on the screen plus one are normally created. Why Plus one? Because as you scroll to the list a partial view will be shown at the top and the bottom. in the scenario it is…

Contents