Chapter 8. Element Binding

At its simplest, data binding is a relationship that tells WPF to extract some information from a source object and use it to set a property in a target object. The target property is always a dependency property, and it's usually in a WPF element—after all, the ultimate goal of WPF data binding is to display some information in your user interface. However, the source object can be just about anything, ranging from another WPF element to an ADO.NET data object (like the DataTable and DataRow) or a data-only object of your own creation.

In this chapter, you'll begin your exploration of data binding by considering the simplest approach: element-to-element binding. In Chapter 19, you'll revisit the data binding story, ...

Get Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 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.