Skip to content

HierarchicalDataTemplates creates TreeViewItems with bad default AutomationProperties.Name #2552

Open
@rrelyea

Description

@rrelyea

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NET FrameworkAccessibilityAn issue related to accessibility enhancements or blockers.accessibility masAn issue which is a MAS (Microsoft Accessibility Standards) certification requirement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions