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

HierarchicalDataTemplates creates TreeViewItems with bad default AutomationProperties.Name #2552

Open
rrelyea opened this issue Feb 11, 2020 · 0 comments
Milestone

Comments

@rrelyea
Copy link

@rrelyea rrelyea commented Feb 11, 2020

HierarchicalDataTemplates create TreeViewItems with bad default AutomationProperties.Name

Need a bad workaround to properly set AutomationProperties.Name.
(use a converter to set AutomationProperties.Name or TreeViewItem.Header)

To Repro:

  1. Open .sln or .csproj in attached Zip
  2. run app
  3. use accessibility insights or narrator to read the 2nd level treeviewitems in the right tree view.

Expected:
Accessibility name is read as what is displayed in the treeviewitem.. ("net461", etc...)

Actual:
4. accessibility name is read as . of datacontext in that treeviewitem.

WPFTreeViewAutomationNameTest.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.