Skip to main content
A newer version of this page is available. .
Bar

BarSubItem.HideWhenEmpty Property

Gets or sets whether the sub-menu button is automatically hidden from the menu if the sub-menu does not contain any items.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[DefaultValue(false)]
public bool HideWhenEmpty { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if the sub-menu button is automatically hidden if the sub-menu is empty; otherwise, false. The default is false.

Remarks

By default, the sub-menu button is shown, even if the sub-menu is empty. When the current sub-menu does not contain any items, you can automatically hide the sub-menu button by setting the HideWhenEmpty property to true.

See Also