HamburgerMenu.SelectedItem Property
Gets or sets the menu item which is currently selected.
Namespace: DevExpress.Xpf.WindowsUI
Assembly: DevExpress.Xpf.Controls.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
Object | The menu item which is currently selected. |
Remarks
When an item is selected in a sub-menu, the item previously selected in the main menu is automatically deselected. Set the sub-menu’s HamburgerSubMenu.IsStandaloneSelectionItemMode property to true to enable independent selection for the main menu and the sub-menu. The sub-menu’s HamburgerSubMenu.SelectedItem property returns the selected sub-menu item.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedItem property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.