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.1.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.
If you set the MaxSubMenuLevel property to 2, this menu simply won’t expand its second sub-menu item when end-users click it.
See Also