Skip to main content
Bar

BarItemAutoSizeMode Enum

Contains values that specify how the contents of a BarStaticItem‘s link is resized.

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public enum BarItemAutoSizeMode

Members

Name Description
None

Doesn’t apply the auto-size feature for a bar item link. The item link’s width is specified by the BarStaticItem.ItemWidth property.

Content

Resizes a BarStaticItem’s link, so its width matches that link’s contents width.

Fill

Resizes a specific BarStaticItem’s link so that it consumes the largest possible area of a bar.

To allow the bar to be stretched to the bar container’s width, set the Bar.UseWholeRow property to true.

Related API Members

The following properties accept/return BarItemAutoSizeMode values:

Remarks

Use the BarStaticItem.AutoSizeMode property to specify how the contents of a BarStaticItem‘s link is resized.

See Also