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

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

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

#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).

The following figure illustrates all possible appearances a ValidationHint object can get with different ShowBackgroundMode property values.

Adorner - Validation ShowBackgroundMode

The ShowBackgroundMode property overrides the corresponding global setting (the ValidationHintBaseProperties.ShowBackgroundMode property) for individual ValidationHint objects.

See Also