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

DXPopupMenu.MaxSubMenuLevel Field

Specifies the maximum menu depth for all DXPopupMenu descendants in this solution. Menus with a nesting level that exceeds this value will be unable to expand certain sub-menu items.

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v18.2.dll

Declaration

[Browsable(false)]
public static int MaxSubMenuLevel

Field Value

Type
Int32

Remarks

Using this property, you can explicitly limit the menu items’ nesting level by the specific value. For example, the following figure illustrates a popup menu with three sub-menu items. The last sub-menu item contains three regular items.

DXPopupMenu - Unlimited SubMenu Level

If you set the MaxSubMenuLevel property to 2, this menu simply won’t expand its second sub-menu item when end-users click it.

DXPopupMenu - Limited SubMenu Level

See Also