Using the different modes of data binding to allow persisting data
Until now, the data has flowed from the source to the target (the UI controls). However, it can also flow in the opposite direction, that is, from the target towards the source. This way, not only can data binding help us in displaying data, but also in persisting data.
The direction of the flow of data in a data binding scenario is controlled by the Mode
property of the Binding
. In this recipe, we'll look at an example that uses all the Mode
options and in one go, we'll push the data that we enter ourselves to the source.
Getting ready
This recipe builds on the code that was created in the previous recipes, so if you're following along, you can keep using that codebase. You can ...
Get Silverlight 4 Data and Services Cookbook 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.