*Is it possible to get validation errors(produced by the binding source through IDataErrorInfo or INotifyDataErrorInfo) **without accessing data source*?
The point is to get the error message which is going to be displayed.
Thank you in advance.
EDIT: “without accessing data source” means that I don’t want to get the error messages through the properties implementing IDataErrorInfo interface on the data source.
Not sure what you mean by “without accessing the data source”, but you can access the errors also via the binding with
Be aware that in case there are no errors, this will throw an exception. So depending on what you want to do, check if there are errors with the “Validation.HasErrors” Property.
Also check this example on how to do it properly: