ClassValidateViewModelBase
Class
Provides basic implementation of the IAsyncDataErrorInfo interface.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
cs-api-definition
public abstract class ValidateViewModelBase : ViewModelBase, INotifyPropertyChanged, IAsyncDataErrorInfo, INotifyDataErrorInfo
Inheritance: objectViewModelBaseValidateViewModelBase
Implements:
Inherited Members
Constructors
ValidateViewModelBase()
Declaration
cs-api-definition
protected ValidateViewModelBase()
Properties
Methods
AddError(string, object)
Adds error message to the specified property.
GetErrors(string)
Declaration
cs-api-definition
public IEnumerable GetErrors(string propertyName)
Parameters
propertyName
Returns
Implements
OnErrorsChanged(string)
Raises the ErrorsChanged event.
Declaration
cs-api-definition
protected virtual void OnErrorsChanged(string propertyName)
Parameters
propertyName
Name of the property.
RemoveErrors(string)
Removes the errors for the specified property.
ValidateAsync(string)
Triggers validate logic asynchronously.
ValidateAsyncOverride(string)
Called by the method. Allows inheritors to provide custom validation logic.
Events
ErrorsChanged
Declaration
cs-api-definition
public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged
Event Value
Implements