Skip to main content
Bar

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

BarItem.Alignment Property

Gets or sets the default alignment of bar item links corresponding to the current bar item, when they are displayed within a bar. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public BarItemAlignment Alignment { get; set; }

#Property Value

Type Description
BarItemAlignment

A BarItemAlignment value that specifies the default alignment of the current bar item’s links.

Available values:

Name Description
Default

A bar item’s default alignment.

Near

A bar item link is aligned to the nearest edge of the parent bar.

Far

A bar item link is aligned to the far edge of the parent bar.

#Remarks

Use the Alignment property to specify the default alignment of bar item links that correspond to the current bar item, when they are displayed within a bar. To override the alignment settings for individual links, use the BarItemLinkBase.Alignment property.

You can also specify the default alignment of all links displayed within a bar via the bar’s Bar.BarItemsAlignment property.

See Also