ValidationHintDefaultProperties.State Property

Gets or sets the current validation state of this ValidationHint.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DefaultValue(null)]
[DXCategory("Appearance")]
public ValidationHintState? State { get; set; }
<DefaultValue(Nothing)>
<DXCategory("Appearance")>
Public Property State As ValidationHintState?

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