Chapter 6. Implementing WPF's new features

In this chapter we will cover:

  • Implementing asynchronous error handling with INotifyDataErrorInfo
  • Using the WeakEvent pattern with WeakEventManager
  • Using the dispatcher's new features
  • Data binding to static properties
  • Throttling the data source update delays
  • LiveShaping — repositioning elements when bound data changes

Introduction

WPF has been enhanced in .NET 4.5, including new and improved controls, such as the ribbon, better data validation, and the INotifyDataErrorInfo interface, to get into the world of asynchronous data validation. The main new features of .NET 4.5 are as follows:

  • Improved performance for displaying large sets of data.
  • Improvements in data binding, which involves binding to static properties, ...

Get Microsoft .NET Framework 4.5 Quickstart Cookbook 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.