Binding to Data Objects

At its simplest, data binding is a process that tells Silverlight to extract a property value from a source object and use it to set a property in a target object. The source object can be just about anything, from an ordinary Silverlight element (as you saw in Chapter 2) to a custom data object (as you'll see in the examples in this chapter). The target object must be an instance of a class that derives from DependencyObject, and the target property must be a dependency property.

Usually, the target of a data binding is an element. This makes sense—after all, the ultimate goal of most Silverlight data binding is to display some information in your user interface. However, you can also use data binding to extract information ...

Get Pro Silverlight 5 in VB 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.