In the previous recipes, you learned how to use the MVVM design pattern and data binding with various controls available out of the box, such as a textbox, a text block, or a progress bar. Apart from these controls, there is another set that presents a list of items, such as a list view, a grid view, or a combobox. Of course, they could also benefit from data binding. In this recipe, you will learn how to use data binding for a list view.
As an example, you will create a page that will present a list of people. Each row will contain a name, current location, and the number of days remaining until the next birthday. After clicking on an item, a message dialog will be shown.
To step through this recipe, you need the automatically generated project configured according to the MVVM design pattern, as described in the Creating the view model for a page recipe.