This course introduces the basic concepts of data binding in Windows Phone development. It then goes on to describe how to use more advanced features such as validation, data templates, list binding, and change notification.
Yacine has been involved in the development of database-driven, n-tier web applications for over 10 years. Over time he has taken on various roles, including development, project management, offshore platform management and technical consulting. He has helped build a few solutions for Microsoft North Africa.
Data binding fundamentals Welcome to this course on Windows Phone 7 Data Binding. In this module, we'll look at the fundamental mechanics and concepts of data binding, and in the next module, we'll examine some more advanced aspects related to updating, converting, displaying, and manipulating bound data. We'll begin with an overview of the way data binding works in WP7, and the syntax details and options available to us. Then we'll zoom in on the DataContext property, and we'll see how it allows us to connect a whole object tree in the UI to a single source object, and bind child elements of the tree to properties and sub-properties of that object. Next, we'll do a close up on the way that bindings get created, by learning how to instantiate bindings in code. And we'll finish up this talk with a brief dive into Silverlight dependency property system, and we'll look at an example of creating a custom dependency property.
Manipulating data Welcome to Part 2 of our two-part series on Windows Phone 7 Data Binding. In this talk we'll first look at two-way binding, which allows us to update a binding source from the target, and value converters, which we use to customize the data that's exchanged between binding source and binding target. We'll then talk about controls in Windows Phone 7, and how some of them can display individual business objects, while others can bind to lists of objects. And specifically we'll look at how to add data binding support to our custom objects and collections. Then we'll take a look at data templates, and we'll see how to provide a UI for some data bound controls to display their source data, and we'll walk through some examples of that. We'll then briefly go over Silverlight validation in Windows Phone 7, and how it works, and we'll finish up with a look at data sorting using the collection view source class.