<PackageReference Include="System.ObjectModel" Version="4.0.11-beta-23409" />

INotifyDataErrorInfo

public interface INotifyDataErrorInfo
Defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.
bool HasErrors { get; }

Gets a value that indicates whether the entity has validation errors.

Occurs when the validation errors have changed for a property or for the entire entity.

IEnumerable GetErrors(string propertyName)

Gets the validation errors for a specified property or for the entire entity.