Chapter 36

Business Applications with WPF


  • Menu and ribbon controls
  • Using commanding for input handling
  • Data binding to elements, objects, lists, and XML
  • Value conversions and validation
  • Using the TreeView to display hierarchical data
  • Displaying and grouping data with the DataGrid
  • Live shaping with the Collection View Source


The code downloads for this chapter are found at on the Download Code tab. The code for this chapter is divided into the following major examples:

  • Books Demo
  • Multi Binding Demo
  • Priority Binding Demo
  • XML Binding Demo
  • Validation Demo
  • Formula 1 Demo
  • Live Shaping


In the previous chapter you read about some of the core functionality of WPF. This chapter continues the journey through WPF. Here you read about important aspects for creating complete applications, such as data binding and command handling, and about the DataGrid control. Data binding is an important concept for bringing data from .NET classes into the user interface, and allowing the user to change data. WPF not only allows binding to simple entities or lists, but also offers binding of one UI property to multiple properties of possible different types with multi binding and priority binding that you’ll learn here as well. Along with data binding it is also important to validate data entered by a user. Here, you can read about different ways for validation including ...

Get Professional C# 2012 and .NET 4.5 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.