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.
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 ...