Skip to main content

Bar.BarItemsAlignment Property

Gets or sets the default alignment of all bar item links that reside within the current bar.

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public BarItemAlignment BarItemsAlignment { get; set; }

Property Value

Type Description
BarItemAlignment

A BarItemAlignment value that specifies the default alignment of all bar item links that reside within the current bar.

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

The BarItemsAlignment property specifies the default alignment of bar item links displayed within the current bar. You can override this alignment setting for individual bar items via the BarItem.Alignment property, and for individual bar item links via the BarItemLinkBase.Alignment property.

If the BarItemsAlignment property is set to Default, bar item links are aligned, by default, at the bar’s nearest edge.

See Also