Skip to content

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.

View source

        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

NameSummary
.ctorInitializes a new instance of the [ValidationContext](# class.

Properties

NameSummary
ValidGets an observable for the Valid state.
ValidationsGets the list of validations.
IsValidGets a value indicating whether the validation is currently valid or not.
ValidationStatusChangeGets the observable for validation state changes.
TextGets the current (optional) validation message.
IsDisposedGets a value indicating whether this instance is disposed.

Methods

NameSummary
AddAdds a validation into the validations collection.
RemoveRemoves a validation from the validations collection.
RemoveManyRemoves many validation components from the validations collection.
GetIsValidReturns if the whole context is valid checking all the validations.
Dispose
Inherited members