Binding to a Database with Custom Objects

When developers hear the term data binding, they often think of one specific application—pulling information out of a database and showing it onscreen with little or no code.

As you've already seen, data binding in WPF is a much more general tool. Even if your application never comes into contact with a database, it's still likely to use data binding to automate the way elements interact or translate an object model into a suitable display. However, you can learn a lot about the details of object binding by considering a traditional example that queries and updates a table in a database. But before you get there, you need to consider the custom data access component and data object that this example ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.