Implementing asynchronous error handling with INotifyDataErrorInfo

The INotifyDataErrorInfo interface has been a .NET citizen for some time, at least for Silverlight developers. It brought a new improved system for validating data, which we now have in WPF, with all of its power and interesting things to discover.

Getting ready

In order to use this recipe you should have Visual Studio 2012 installed.

How to do it...

In this recipe we will explain how to use this new powerful feature of WPF in .NET 4.5.

  1. First, open Visual Studio 2012 and create a new project. We will select the WPF Application template from the Visual C# category and name it WPFValidation.
  2. Create a class named BaseClass.cs. Edit it and implement the interfaces INotifyPropertyChanged ...

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.