Data Templates, Data Views, and Data Providers

In Chapter 16, you learned the essentials of WPF data binding—how to pull information out of an object and display it in a window, with little or no code. Along the way, you considered how to make that information editable, how to format it, how to convert it to the representation you need, and how to incorporate more advanced features such as validation. However, you still have more to learn.

In this chapter, you'll continue your exploration by tackling three subjects that will allow you to build better bound windows. First, you'll look at data templates, which let you customize the way each item is shown in an ItemsControl. Data templates are the secret to converting a basic list into a rich data ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition 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.