Back to Devexpress

BarItem.Alignment Property

wpf-devexpress-dot-xpf-dot-bars-dot-baritem-2efa712c.md

latest2.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public BarItemAlignment Alignment { get; set; }
vb
Public Property Alignment As BarItemAlignment

Property Value

TypeDescription
BarItemAlignment

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

|

Available values:

NameDescription
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

Alignment

BarItemsAlignment

BarItem Class

BarItem Members

DevExpress.Xpf.Bars Namespace