September 2012
Intermediate to advanced
464 pages
10h 55m
English
Although element to element binding is occasionally useful, the classic data binding scenario involves an element bound to pure data. One of the benefits of this kind of binding is a decoupling of data from the way it's presented (if at all). All later changes are performed on the data only, letting the binding take care of updating whatever elements are bound to this data. In this recipe, we'll look at binding to a single data object.
Make sure Visual Studio is up and running.
We'll create some controls that bind to a single Person object, showing the basics of element to data binding.
CH06.SingleObjectBinding.MainWindow.xaml. Change the existing Grid ...