How to implement INotifyDataErrorInfo in WPF 4.5? [closed]
Asked Answered
A

2

31

I realized that appears this interface in .NET Framework 4.5

I was looking first for about how to implemented in Silverlight (I can imagine that it's implemented in the same way), but I can't find a compact demo of this new interface. Is it possible to show how can I use it?

I really want to find a small demo to understand it

Annmaria answered 30/3, 2012 at 20:38 Comment(1)
Can't you use the same implementation example on the MSDN page for the Silverlight version? msdn.microsoft.com/en-us/library/…Demetra
S
33

Beside the very detailed description on MSDN about the Silverlight version of INotifyDataErrorInfo

There are already some blog posts with samples how to use/implement it in WPF 4.5:

Stalwart answered 30/3, 2012 at 20:48 Comment(1)
First link is not working!Armoury
N
0

The PRISM library has a very good example implementation in the MVVM RI sample, the class named DomainObject implements both INotifyPropertyChanged and INotifyDataErrorInfo.

It is a SL version but it now compiles with .NET 4.5

Nightcap answered 20/7, 2012 at 5:0 Comment(2)
but that one just work on Silverlight, doesn't it?Annmaria
@DarfZon now it works with WPF (4.5) I am currently using it. You just need DomainObject.cs and ErrorContainer.csNightcap

© 2022 - 2024 — McMap. All rights reserved.