The WinUI NavigationView has a couple of issues preventing the behavior from working as expected. Building a custom sidebar using listview groups with the expander control might allow us to recreate the sidebar UI and provide a better experience to users.