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

ToolBarControlBase.BarItemsAlignment Property

Gets or sets the default alignment for all bar items that reside in the current tool 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 for all bar item links that reside in the current tool 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 for bar items displayed in the current tool bar. You can override this alignment setting for individual bar items using the BarItem.Alignment property.

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

See Also