From the course: .NET MAUI: Beyond the Basics

Unlock the full course today

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

Challenge: Working with collections

Challenge: Working with collections - .NET MAUI Tutorial

From the course: .NET MAUI: Beyond the Basics

Challenge: Working with collections

- [Instructor] Now let's try testing what you learned in this chapter. In the video start code there's a view model called page collection view models. So let's open that up. And in this is a property called names. And this returns to the first 500 names of the data source. The structure of the nameless class it returns, is a collection of all names starting with each letter. So there's a collection starting with A, one with B, one with C, et cetera. However, these are not loaded all at once. There's a property called more data command. And if we scroll down this we can see this right here, more data command. This returns a command to load more data into the names collection. It automatically handles sorting the data into the proper grouping by first letter of the name. Here we have a post screen design. In it we see there's a collection view that is grouped by letter of the first name. It scrolls and is laid out in a…

Contents