Skip to main content

ValidationHintProperties.State Property

Gets or sets this ValidationHint object’s current state.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

[DefaultValue(ValidationHintState.Default)]
[DXCategory("Behavior")]
public ValidationHintState State { get; set; }

Property Value

Type Default Description
DevExpress.Utils.VisualEffects.ValidationHintState Default

A DevExpress.Utils.VisualEffects.ValidationHintState enumerator value that specifies this ValidationHint object’s current state.

Remarks

Normally you do not need to manually switch validation states of a ValidationHint object, as it will automatically apply the appropriate set of appearance and behavior properties (the ValidationHint.Appearances and ValidationHint.Properties groups) depending on its target control’s validation state. If you wish not to follow the standard validation mechanism that involves handling the Control.Validating and Control.Validated events, implement your own logic and use the State property to set validation hints to the required validation states.

See Also