ValidationHintBaseDefaultProperties.ShowBackgroundMode Property
Gets or sets what ValidationHint object’s regions should be painted using this object’s background color.
Namespace: DevExpress.Utils.VisualEffects
Assembly: DevExpress.Utils.v24.2.dll
Declaration
[DefaultValue(null)]
[DXCategory("Appearance")]
public ValidationHintBackgroundMode? ShowBackgroundMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Nullable<DevExpress.Utils.VisualEffects.ValidationHintBackgroundMode> | null | A Nullable<T><DevExpress.Utils.VisualEffects.ValidationHintBackgroundMode,> object that specifies what ValidationHint object’s regions should be painted using this object’s background color. |
Remarks
By default, a background color specified in the ValidationHint.Appearances section is ignored for all validation states. Using the ShowBackgroundMode property, you can apply this color to one of the following regions (or to both of them).
- A UI element associated with the current ValidationHint. This will colorize the area inside validation borders (the ValidationHintBaseDefaultProperties.ShowBorder property). If you intend to colorize this region, use semi-transparent ARGB colors instead of solid RGB values.
- A hint, displayed next to validation borders. This hint is displayed if the ValidationHintBaseDefaultProperties.ShowBorder and ValidationHintBaseProperties.ShowBorder properties allow it so.
The following figure illustrates all possible appearances a ValidationHint object can get with different ShowBackgroundMode property values.
The ShowBackgroundMode property overrides the corresponding global setting (the ValidationHintBaseProperties.ShowBackgroundMode property) for individual ValidationHint objects.