There are three main components to using a list view control: the list view itself, the list item template so that it knows how to display data, and then the data itself. We'll look at how we can create a list item template and learn how to bind elements in the template to data from the list.
- [Voiceover] We've created a list but we haven't told it…how it should render anything.…So we need to define the list item template.…A list item template is used by the list control…to render each item on the list.…List items get past the data for that particular item…that it represents, and then you could start to bind…the properties of that data object.…So our next step will be to create that template.…You will want to make sure you're working at list dot html.…We're going to create that template.…
Right under this div id list at line nine,…I'm going to add another div, and I'm going to give it…a class of item template.…Now you'll notice that this class item template…is also what we're selecting for the template on the list.…So you could change its name as long as you change it here.…It's just trying to identify in the dom.…Based on this, I'm going to select it from the dom,…and it has a dot and we know it's a class in that instance,…itemTemplate, I'm going to use that item.…
Now we're going to want to identify this template…
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
Skill Level Beginner
1. Getting Started with Universal Windows Applications
3. Layouts and Controls
4. Utilizing APIs
5. Managing Data and Storage
Next steps1m 56s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.