Changing NavigationView's PaneDisplayMode also raises SelectionChanged event #148
Closed
2 of 11 tasks
Labels
area-NavigationView
NavView control
bug
Something isn't working
team-Controls
Issue for the Controls team
Describe the bug
When NavigationView changes its PaneDisplayMode between Auto and Top, it also raises a SelectionChanged event, even though the selected item was not modified. This is problematic when the currently selected item is Settings, because the event args incorrectly report IsSettingsSelected as false.
Steps to reproduce the bug
Expected behavior
The NavigationView should change its orientation from vertical to horizontal, or vice versa, while keeping the Settings item selected.
What's actually happening is that the app is crashing on trying to access the content of the selected item, which is null.
Screenshots
Version Info
NuGet package version:
Microsoft.UI.Xaml 2.1.181217001-preview
Windows 10 version:
Insider Build (xxxxx)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Anniversary Update (14393)
Device form factor:
Additional context
The text was updated successfully, but these errors were encountered: