O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required