Using WinUI3
Is there any way to collapse a navigation menu item when the selection changes to another menu item?
I try to iterate through all options of the menu at the ‘Selection change’ event, and set the ‘IsExpanded’ property to ‘false’ if it’s not the selected item. This works, but unfortunately breaks the menu selection indicator and it’s animation.
New contributor
Daan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.