Skip to main content
Bar

BarBaseButtonItem.CloseOwnerMenuOnlyOnClick Property

Gets or sets whether only the submenu owning the current button is closed on a click, but not precedent submenus.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool CloseOwnerMenuOnlyOnClick { get; set; }

Property Value

Type Description
Boolean

true if only the submenu owning the current button is closed on a click; otherwise, false. The default is false.

Remarks

By default, if a button in a submenu is clicked, the submenu owning the button and all precedent submenus automatically close. By setting the BarBaseButtonItem.CloseSubMenuOnClick property to false, you prevent all opened submenus from being automatically closed after the current button is clicked.

Setting the CloseOwnerMenuOnlyOnClick property to true only prevents precedent submenus from being closed on a click, while the submenu owning the current button closes.

See Also