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

BadgeDefaultProperties.Location Property

Gets or sets the relative position for this Badge.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

[DefaultValue(null)]
[DXCategory("Layout")]
public ContentAlignment? Location { get; set; }

#Property Value

Type Default Description
Nullable<ContentAlignment> null

A ContentAlignment enumerator value that specifies the relative position for this Badge.

#Remarks

Badge are anchored to specific UI elements via the AdornerElement.TargetElement property. By default, badges are located at the top left corner of their related elements. Use the Location property to change this relative position. Additionally, you can move badges from their positions using the BadgeDefaultProperties.Offset property.

If the Location property is not set, badges are aligned according to the global BadgeProperties.Location property.

See Also