Class ValidationHelper
- Namespace
- ReactiveUI.Validation.Helpers
- Assembly
- ReactiveUI.Validation.dll
Encapsulation of a validation with bindable properties.
public class ValidationHelper : ReactiveObject, IDisposable
- Inheritance
-
ValidationHelper
- Implements
- Extension Methods
Constructors
ValidationHelper(IValidationComponent, IDisposable?)
Initializes a new instance of the ValidationHelper class.
public ValidationHelper(IValidationComponent validation, IDisposable? cleanup = null)
Parameters
validation
IValidationComponentValidation property.
cleanup
IDisposableThe disposable to dispose when the helper is disposed.
Properties
IsValid
Gets a value indicating whether the validation is currently valid or not.
public bool IsValid { get; }
Property Value
Message
Gets the current (optional) validation message.
public IValidationText? Message { get; }
Property Value
ValidationChanged
Gets the observable for validation state changes.
public IObservable<IValidationState> ValidationChanged { get; }
Property Value
Methods
Dispose()
public void Dispose()
Dispose(bool)
Disposes of the managed resources.
protected virtual void Dispose(bool disposing)