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

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