Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
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