2. Binding and Controls
In Chapter 1, “Hello, Windows 8!” I explained how binding is the ability to take the value of a list of data, like a set of RSS feeds, and use it to populate a control, like a ListView
. Further, I explained how to tailor which data we extract using templates, and I provided an example in which we extracted just the title from each feed. In this chapter we’ll discuss how binding is even more flexible than that, allowing us to update the UI as the underlying data changes as well as sort, filter, and group the data.
When we use data binding, it’s often in the context of a control, just like when we configured the ListView
control with the list of feeds to use and the template to use for each feed. In this chapter, we’re going ...
Get Building Windows 8 Apps with JavaScript 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.