INotifyDataErrorInfo is an interface in .Net Framework which defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.
Questions tagged [inotifydataerrorinfo]
85 questions
31
votes
2 answers
How to implement INotifyDataErrorInfo in WPF 4.5?
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…

Darf Zon
- 6,268
- 20
- 90
- 149
12
votes
1 answer
How to add validation to view model properties or how to implement INotifyDataErrorInfo
I have a data collection of type ObservableCollection (say instance as myClassTypes). After some user operation, this myClassTypes populated with values in ViewModel. In view, there is a TextBox where user can enter text. I need to validate textbox…

Arvind Pandey
- 141
- 1
- 8
11
votes
3 answers
INotifyDataErrorInfo ArgumentOutOfRangeException when raising ErrorsChanged event
This is a wierd one and at this point I am thinking that it may have something to do with my machines configuration.
Basically I have created a pretty standard implementation of INotifyDataErrorInfo and in certain circumstances, when raising the…

Simon Fox
- 10,409
- 7
- 60
- 81
8
votes
1 answer
Is is possible to use a combination of ValidationRules and INotifyDataErrorInfo for wpf validation?
In WPF there are 3 ways to do validation:
Validation Rules
IDataErrorInfo
INotifyDataErrorInfo
Is it possible to use a combination of these at the same time? For my needs, I would like to validate new rules with the flexibility of…

disklosr
- 1,536
- 17
- 26
6
votes
1 answer
How do you get WPF validation to bubble up to a parent control?
So I have a control like this simplified version:

TyCobb
- 8,909
- 1
- 33
- 53
6
votes
1 answer
Correct property name for nested property and INotifyDataErrorInfo
I'm using the INotifyDataError interface for async validation in WPF. I have a property
On my view model I have a property
public SomeType XXX
and on…

bradgonesurfing
- 30,949
- 17
- 114
- 217
5
votes
1 answer
INotifyDataErrorInfo. ErrorsChanged how to make wpf show the errors of property like `Address.Country`
There is only 3 things inside of INotifyDataErrorInfo:
HasErrors: a read-only boolean property which tells if the object as a whole have any validation errors;
GetErrors: a method which returns validation errors for a given property;
ErrorsChanged:…

huoxudong125
- 1,966
- 2
- 26
- 42
5
votes
1 answer
How to trigger validation on one property when another property has been validated, using custom ValidationAttribute and INotifyDataErrorInfo
Up until recently, I have used a custom extended version of the IDataErrorInfo interface. My extension enables me to work with multiple errors simultaneously and so far, it's served me very well. However, with the introduction of the…

Sheridan
- 68,826
- 24
- 143
- 183
5
votes
3 answers
Creating a ToolTip that shows all Validation.Errors for a control using INotifyDataErrorInfo in WPF 4.5
I have multiple controls including a TextBox and a ComboBox and I would like all of them to display a ToolTip with all of the errors contained in the Validation.Errors collection. I would like them all to share a common style if possible, which is…

Matt Zappitello
- 785
- 2
- 11
- 30
4
votes
1 answer
Is INotifyDataErrorInfo broken for WPF 4.5 DataGrids
I have made a simple implementation of INotifyDataErrorInfo in a WPF 4.5 project. This is a new interface for WPF but has been available in Silverlight for some time.
I know that NET4.5 is still considered alpha but I'm trying to work out if it is…

m1dst
- 333
- 2
- 9
4
votes
2 answers
UWP INotifyDataErrorInfo
Do controls on the UWP platform automatically support the INotifyDataErrorInfo interface through binding?
On Silverlight and WPF, if we implement the INotifyDataErrorInfo interface, most controls will automatically glow red and display an error…

Christian Findlay
- 6,770
- 5
- 51
- 103
4
votes
2 answers
Display error validation on another control
I have a TextBlock and a CheckBox, as such:
In my model I am implementing…

kkyr
- 3,785
- 3
- 29
- 59
4
votes
1 answer
How to validate Observable Collection with INotifyDataErrorInfo interface
I'm developing WPF application with MVVM pattern and using Prism Framework.
I have a basic data class as follow.
public class ProductDecorator : DecoratorBase
{
private string _ProductShortName;
private Boolean _IsSelected =…

Steve.NayLinAung
- 5,086
- 2
- 25
- 49
4
votes
1 answer
UI not calling INotifyDataErrorInfo.GetErrors()
I have a model implementing both INotifyPropertyChanged and INotifyDataErrorInfo. The Property changed event fires when ever I have a property modified, but for some reason when I raise the Error event handler, the UI does ever invoke the GetErrors…

Johnathon Sullinger
- 7,097
- 5
- 37
- 102
4
votes
2 answers
How to properly implement INotifyDataErrorInfo?
I'm a little confused by MSDN example.
It's not clear how to treat and set entity realted errors.
Code in example:
public System.Collections.IEnumerable GetErrors(string propertyName)
{
if (String.IsNullOrEmpty(propertyName) ||
…

Pavel Voronin
- 13,503
- 7
- 71
- 137