Skip to main content

TileBarDropDownOptions.AutoHeight Property

Gets or sets whether automatic height/width calculation is enabled for dropdown windows.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v22.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean AutoHeight { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A value that specifies if automatic height/width calculation is enabled for dropdown windows.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoHeight
TileBar
.DropDownOptions.AutoHeight
TileBarItem
.DropDownOptions.AutoHeight

Remarks

If the AutoHeight property is set to Default or False and the TileBarDropDownOptions.Height property is 0, the dropdown window size (the height in the horizontal orientation; the width in the vertical orientation) matches the size of the TileBar control. When required, you can specify a custom height in the horizontal orientation and a custom width in the vertical orientation for the dropdown window with the TileBarDropDownOptions.Height property.

If the AutoHeight property is set to True, the height/width of the dropdown window is adjusted to fit the height/width of the TileBarDropDownContainer assigned to the TileBarItem.DropDownControl property. In this case, the TileBarDropDownOptions.Height property is ignored.

See Also