Introduction to the ListView Control

Let’s start with the basics. You can bind a ListView control to any data source that implements the JavaScript IListDataSource interface. The WinJS library includes two objects that implement this data source:

Image WinJS.Binding.List—Enables you to represent a JavaScript array as a data source.

Image WinJS.UI.StorageDataSource—Enables you to represent files from your computer hard drive as a data source. For example, you can use the WinJS.UI.StorageDataSource with the ListView control to display a list of pictures retrieved ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.