O'Reilly logo

Professional C# 2012 and .NET 4.5 by Morgan Skinner, Karli Watson, Jay Glynn, Bill Evjen, Christian Nagel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 36

Business Applications with WPF

WHAT’S IN THIS CHAPTER?

  • 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

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

The wrox.com code downloads for this chapter are found at http://www.wrox.com/remtitle.cgi?isbn=1118314425 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

INTRODUCTION

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required