Class ReactiveValidationObject
- Namespace
- ReactiveUI.Validation.Helpers
- Assembly
- ReactiveUI.Validation.dll
Base class for ReactiveObjects that support INotify
public abstract class ReactiveValidationObject : ReactiveObject, IValidatableViewModel, INotifyDataErrorInfo, IDisposable
- Inheritance
-
Reactive
Validation Object
- Implements
- Extension Methods
Constructors
ReactiveValidationObject(IScheduler?, IValidationTextFormatter<string>?)
Initializes a new instance of the Reactive
protected ReactiveValidationObject(IScheduler? scheduler = null, IValidationTextFormatter<string>? formatter = null)
Parameters
scheduler
ISchedulerScheduler for the Validation
Context . Uses System.Reactive. by default.Concurrency. Current Thread Scheduler formatter
IValidationText <string>Formatter Validation formatter. Defaults to Single
Line . In order to override the global default value, implement IValidationTextFormatter<TOut> and register an instance of IValidationTextFormatter<string> into Splat.Locator.Formatter
Properties
HasErrors
Property Value
ValidationContext
Gets get the validation context.
Property Value
Methods
Dispose()
Releases unmanaged and - optionally - managed resources.
Dispose(bool)
Disposes the specified disposing.
Parameters
disposing
boolif set to
true
[disposing].
GetErrors(string?)
Returns a collection of error messages, required by the INotifyDataErrorInfo interface.
Parameters
propertyName
stringProperty to search error notifications for.
Returns
- IEnumerable
A list of error messages, usually strings.
RaiseErrorsChanged(string)
Raises the Errors
Parameters
propertyName
stringThe name of the validated property.