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 crash when launched in Top mode with hierarchical navigation #3166

Conversation

Felix-Dev
Copy link
Contributor

Description

PR #2759 introduced a regression which manifested itself in an app crash. The app crash happens when the following conditions are met:

  • the NavigationView is launched in Top pane display mode
  • at least one top-level NavigationViewItem has a MenuItemsSource != null (and no MenuItems)

(Launching the NavigationView in other configurations works as expected.)

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 20, 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:

@ranjeshj ranjeshj 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 21, 2020
@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).

@Felix-Dev
Copy link
Contributor Author

Fixed merge conflicts.

@StephenLPeters
Copy link
Contributor

@Felix-Dev The pipeline fix just went in, could you please merge master into this PR?

@Felix-Dev
Copy link
Contributor Author

@StephenLPeters Merged with master.

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 4fe1fd5 into microsoft:master Sep 9, 2020
@Felix-Dev Felix-Dev deleted the user/Felix-Dev/navview-databinding-crash-fix branch September 9, 2020 18:18
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Sep 13, 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.

5 participants