ValidationContext class¶
Defined in
Namespace: ReactiveUI.Validation.Contexts
Assembly: ReactiveUI.Validation.dll
Full name: ReactiveUI.Validation.Contexts.ValidationContext
Modifiers: public
Summary¶
Inherited documentation
These docs were inherited from IValidationComponent.
The overall context for a view model under which validation takes place.
Applies to
net10.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-android36.0, net10.0-ios26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net9.0, net9.0-windows10.0.19041, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net481, net462
Class hierarchy
classDiagram
class ValidationContext
class ReactiveObject
ReactiveObject <|-- ValidationContext
class IValidationContext {
<>
}
IValidationContext <|.. ValidationContext
class IValidationComponent {
<>
}
IValidationComponent <|.. ValidationContext
class IReactiveObject {
<>
}
IReactiveObject <|.. ValidationContext
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. ValidationContext
class INotifyPropertyChanging {
<>
}
INotifyPropertyChanging <|.. ValidationContext
class IEnableLogger {
<>
}
IEnableLogger <|.. ValidationContext
class ICancelable {
<>
}
ICancelable <|.. ValidationContext
class IDisposable {
<>
}
IDisposable <|.. ValidationContext
Inherits from: ReactiveObject
Implements: IValidationContext, IValidationComponent, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, ICancelable, IDisposable
Remarks¶
Contains all of the IValidationComponent instances applicable to the view model.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ValidationContext](# class. |
Properties¶
| Name | Summary |
|---|---|
| Valid | Gets an observable for the Valid state. |
| Validations | Gets the list of validations. |
| IsValid | Gets a value indicating whether the validation is currently valid or not. |
| ValidationStatusChange | Gets the observable for validation state changes. |
| Text | Gets the current (optional) validation message. |
| IsDisposed | Gets a value indicating whether this instance is disposed. |
Methods¶
| Name | Summary |
|---|---|
| Add | Adds a validation into the validations collection. |
| Remove | Removes a validation from the validations collection. |
| RemoveMany | Removes many validation components from the validations collection. |
| GetIsValid | Returns if the whole context is valid checking all the validations. |
| Dispose |
Inherited members
ReactiveUI.ReactiveObject.#ctorReactiveUI.ReactiveObject.SuppressChangeNotificationsReactiveUI.ReactiveObject.AreChangeNotificationsEnabledReactiveUI.ReactiveObject.DelayChangeNotificationsReactiveUI.ReactiveObject.ChangingReactiveUI.ReactiveObject.ChangedReactiveUI.ReactiveObject.ThrownExceptionsReactiveUI.ReactiveObject.PropertyChangingReactiveUI.ReactiveObject.PropertyChangedSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString