Using the ListView Control

In this chapter, I describe the ListView control, which is another of the WinJS data-driven UI controls. There is a common foundation with the FlipView control from the last chapter, but ListView displays multiple items and provides some flexibility in how this is done. In this chapter, I explain the different kinds of template and layout that can be used, describe the differences between invoked and selected items and how you how to handle the various events that the ListView control emits. I also show you how to work with the abstractions that describe a data source so that you can write code that will work with any data source, not just those which are created using the WinJS.Binding.List object.