Skip to Content
Real World .NET 4, C#, and Silverlight®: Indispensible Experiences from 15 MVPs
book

Real World .NET 4, C#, and Silverlight®: Indispensible Experiences from 15 MVPs

by Bill Evjen, Dominick Baier, György Balássy, Gill Cleeren, David Giard, Alex Golesh, Kevin Grossnicklaus, Caleb Jenkins, Jeffrey Juday, Vishwas Lele, Jeremy Likness, Scott Millett, Christian Nagel, Christian Weyer, Daron Yöndem
November 2011
Intermediate to advanced content levelIntermediate to advanced
648 pages
17h 57m
English
Wrox
Content preview from Real World .NET 4, C#, and Silverlight®: Indispensible Experiences from 15 MVPs

13

Practical WPF Data Binding

by Christian Nagel

This chapter provides practical information on data binding with Windows Presentation Foundation (WPF). It leads you on a journey to see various aspects of data binding and how you can use it. Simple object binding, as well as list binding (including validation and how to deal with large lists), are explained. Don't expect to see cool user interfaces (UIs) with WPF in this chapter. The UI is kept simple. Various features of WPF for styling, animations, and three dimensional (3D) are not discussed. This chapter focuses only on data binding with WPF.

SAMPLE APPLICATION

The sample application used in this chapter is based on a Formula 1 database. Instead of just binding to in-memory data, a database with several tables and thousands of rows demonstrates data-binding features. You can download the database, along with the sample code for this chapter, on this book's companion website (www.wrox.com).

The database contains information about Formula 1 racers, circuits, and race results. With the application, racers can be queried and changed, and race results can be added.

Figure 13-1 shows the database structure. The Circuits table contains information about all Formula 1 circuits that have been raced on. You can find the race date for circuits in the Races table. Each record in the Races table connects to a list of records in RaceResults. An entry in RaceResults contains a link to one record in the Racers table and one record in the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Applied ASP.NET 4 in Context

Applied ASP.NET 4 in Context

Adam Freeman
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner
Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen, Scott Hanselman

Publisher Resources

ISBN: 9781118021965Purchase bookDownloads