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

Fix issue with NavigationViewItem announcing collapsed when not having children #2770

Merged

Conversation

marcelwgn
Copy link
Collaborator

Description

Added a check to the NavigationViewItemAutomationPeer whether the NavViewItem it represents has children or not. If the item has no children, we don't return that as the automation peer for the ExpandCollapse pattern.

Motivation and Context

Closes #2598

How Has This Been Tested?

Added new API test, tested manually with narrator

Screenshots (if appropriate):

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Jun 27, 2020
@StephenLPeters StephenLPeters added accessibility Narrator, keyboarding, UIA, etc 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 Jun 29, 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 StephenLPeters merged commit 80d920c into microsoft:master Jun 30, 2020
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Jul 3, 2020
@ranjeshj ranjeshj added the needs-cherrypicktorelease PR tagged for cherry-pick to the current release branch (but not yet picked) label Jul 7, 2020
ranjeshj pushed a commit that referenced this pull request Jul 7, 2020
…g children (#2770)

* Fix issue with collapse being announced on NavViewItem with no children

* Add test
@ranjeshj ranjeshj removed the needs-cherrypicktorelease PR tagged for cherry-pick to the current release branch (but not yet picked) label Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Narrator, keyboarding, UIA, etc area-NavigationView NavView control team-Controls Issue for the Controls team
Projects
None yet
4 participants