Skip to main content

ValidationHintDefaultProperties.State Property

Gets or sets the current validation state of this ValidationHint.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

[DefaultValue(null)]
[DXCategory("Appearance")]
public ValidationHintState? State { get; set; }

Property Value

Type Default Description
Nullable<DevExpress.Utils.VisualEffects.ValidationHintState> null

A ValidationHintState enumerator value that is the current validation state of this ValidationHint.

Remarks

A typical scenario for using ValidationHint objects does not involve switching hint validation states manually. Instead, you specify unique appearance and behavior settings for each possible validation state using the ValidationHint.Appearances and ValidationHint.Properties groups. The hint will automatically apply corresponding settings based on the target UI element’s validation state.

Alternatively, if you do not wish to use standard validation approaches, implement your own validation logic and switch validation hint states manually by using the State property.

See Also