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. |
null | A Validation |
#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.