ValidationHintBaseDefaultProperties.HintLocation Property
Gets or sets the position of this ValidationHint object’s hint relative to its target UI element.
Namespace: DevExpress.Utils.VisualEffects
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
[DefaultValue(null)]
[DXCategory("Layout")]
public ValidationHintLocation? HintLocation { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Nullable<Validation |
null | A Validation |
Available values:
Name | Description |
---|---|
Default | A default location. This value is equal to Validation |
Left | The hint will be displayed to the target UI element’s left. |
Top | The hint will be displayed above the target UI element. |
Bottom | The hint will be displayed below the target UI element. |
Right | The hint will be displayed to the target UI element’s right. |
#Remarks
A ValidationHint object can display apply two visual effects for its target UI element:
- a colorized border around the UI element (see the ValidationHintBaseDefaultProperties.ShowBorder property);
- a hint next to the UI element (see the ValidationHintBaseDefaultProperties.ShowHint property).
This hint can display both a text string and an image specific to the current UI element’s validation state. To set the relative position of this hint, use the HintLocation property. This property overrides a global ValidationHintBaseProperties.HintLocation property, accessed through the parent manager’s AdornerUIManager.ValidationHintProperties group.
See the Adorner UI Manager article to learn more.