Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationView: Fix app crash in Top mode when clearing the item collection while a selected item exists #3202

Conversation

Felix-Dev
Copy link
Contributor

@Felix-Dev Felix-Dev commented Aug 26, 2020

Description

This PR fixes a regression introduced with PR #1997 which manifested itself in an app crash. The crash occured when the NavigationView is

  • in Top pane display mode
  • one of its menu items is selected and
  • the item collection used to populate the NavigationView (either MenuItems or MenuItemsSource) is cleared

Motivation and Context

Fixes #3200

How Has This Been Tested?

Tested manually and added API test.

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Aug 26, 2020
@YuliKl YuliKl added area-NavigationView NavView control team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Aug 26, 2020
Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 9c0115f into microsoft:master Sep 2, 2020
@Felix-Dev Felix-Dev deleted the user/Felix-Dev/navview-itemscollection-clear-crash-fix branch September 3, 2020 08:38
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Sep 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NavigationView: App crash on Top mode when clearing the items collection while a MenuItem is selected
5 participants