Class ValidationHelper
- Namespace
- ReactiveUI.Validation.Helpers
- Assembly
- ReactiveUI.Validation.dll
ReactiveObject is the base object for ViewModel classes, and it implements INotifyPropertyChanged. In addition, ReactiveObject provides Changing and Changed Observables to monitor object changes.
public class ValidationHelper : ReactiveObject, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IDisposable
- Inheritance
-
Validation
Helper
- Implements
-
IEnable
Logger
- Inherited Members
- Extension Methods
Constructors
ValidationHelper(IValidationComponent, IDisposable?)
Initializes a new instance of the Validation
[RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")]
public ValidationHelper(IValidationComponent validation, IDisposable? cleanup = null)
Parameters
validationIValidationComponent Validation property.
cleanupIDisposableThe disposable to dispose when the helper is disposed.
Properties
IsValid
Gets a value indicating whether the validation is currently valid or not.
Property Value
Message
Gets the current (optional) validation message.
Property Value
ValidationChanged
Gets the observable for validation state changes.
Property Value
Methods
Dispose()
Dispose(bool)
Disposes of the managed resources.