Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ValidationHintDefaultProperties.State Property

Gets or sets the current validation state of this ValidationHint.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v24.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