Skip to main content
Bar

BarStaticItem.AutoSizeMode Property

Gets or sets the item's auto-size mode. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

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

#Declaration

[XtraSerializableProperty]
public BarItemAutoSizeMode AutoSizeMode { get; set; }

#Property Value

Type Description
BarItemAutoSizeMode

A BarItemAutoSizeMode value that specifies the item's auto-size mode.

#Remarks

If the AutoSizeMode property is set to BarItemAutoSizeMode.Fill, the item's link occupies the largest possible space within the bar. This setting makes sense when the bar is stretched to the bar container's width (the Bar.UseWholeRow option is enabled).

See Also