Skip to main content

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.1.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