dotnet / dotnet/docs-desktop

Mention INotifyDataErrorInfo in WPF data binding overview

Open
#127 1 comment 0 reactions 0 assignees View on GitHub
doc-enhancement dotnet-desktop/svc Pri2 wpf/subsvc
Dominant language
C#
Stars
237
Forks
191
Avg merge
4d 16h
Merged PRs (30d)
3

Description

The validation section only mentions `IDataErrorInfo`, it should additionally or exclusively recommend its successor `INotifyDataErrorInfo`.
I had heard a recommendation of `INotifyDataErrorInfo` elsewhere but after reading this article i got the false impression that it isn't supported in WPF and wasted some time implementing `IDataErrorInfo` on my Viewmodels. Only when searching for more tutorials later I found one using `INotifyDataErrorInfo` and rewrote my code.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 0087496b-4b5d-33c1-5666-57fccd986ef4
* Version Independent ID: c7bc226d-cd15-3740-a840-b12f7180fd04
* Content: [Data binding overview - WPF .NET](https://docs.microsoft.com/en-us/dotnet/desktop/wpf/data/data-binding-overview?view=netdesktop-5.0#data-validation)
* Content Source: [dotnet-desktop-guide/net/wpf/data/data-binding-overview.md](https://github.com/dotnet/docs-desktop/blob/master/dotnet-desktop-guide/net/wpf/data/data-binding-overview.md)
* Product: **dotnet-desktop**
* Technology: **dotnet-wpf**
* GitHub Login: @adegeo
* Microsoft Alias: **adegeo**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.