Lists are great to handle large sets of information, and can display that content in a variety of ways. We'll use one of the more complex components from the WinJS library, the ListView control. We will learn how to set options like mulit selection of items or toggling and declare all of it in HTML.
- View Offline
- [Voiceover] We are gonna explore using the list control.…Lists are great to handle large sets of information,…and you can have lists that also group that information…into categories if your data suggests…that type of presentation.…Lists are typically made up of two components:…you have the list control itself,…and then you have the list item.…The list item is the template that will be used…by the list control to render out…each item in that list.…We're gonna start by defining the list control…and the properties on the list control,…then we'll create a template,…and after that, we will add some data to the list.…
Make sure you're working in list.html.…Let's remove this inner div, and let's add…to the body like we've been doing…to the other body classes,…another class that is the "win-type" body class.…Now, in here, let's just create a holder div,…and let's call this, you know, "list",…and that's just gonna hold everything in this page.…Now what we wanna do is we wanna create this list.…To use the list control, we need to create a div,…
Watch to gain an understanding of the Universal Windows Platform and the application life cycle. Learn to create adaptive layouts with WinJS controls. Discover how to store and share data, capture a variety of input, and explore the unified Microsoft-specific APIs: Windows Core and Geolocation. Stacey Mulcahy, a Windows evangelist, provides developers with everything they need to start building Universal Windows apps and break into cross-device development.
- Setting up your development environment
- Coding in WinJS
- Creating page objects
- Animating page transitions
- Implementing responsive design principles and UI patterns
- Working with layout controls
- Using APIs: Windows Core and Geolocation
- Saving and reading data