microsoft/axe-windows

[BUG] Cannot assign AutomationProperties.Name to list item if list item contains a usercontrol object

EltonChen123 opened this issue · 3 comments

Describe the bug

We define a ListBox and define a customized list item which contains a usercontrol to show the app icon, app name, size... When we set AutomationProperties.Name to list item, it change the name of usercontrol, not list item name. The list item name still show the usercontrol class name. How to change the list item name?

To Reproduce

image

image

image

Expected behavior

The list item name should be changed.

Actual behavior

The list item name always show the usercontrol class name.

Screenshots or .GIF

image

Desktop (please complete the following information):

  • OS: 20H2 19042.1165
  • Accessibility Insights for Windows Version: 1.1.1689.1
  • Target Application: PredatorSense
  • Target Application Version:

Additional context

Priority requested -

How to let list item use the custom control name which is the child of the list item control. Thanks

Hi @EltonChen123 ,

This is more of a WPF question than an axe-windows bug, so I'm going to mark this issue as closed/out-of-scope for axe-windows.

That said, this sample project (particularly, this bit of XAML) demonstrates how to do what you're looking for. Let us know if that gets you unblocked!

Thanks and good luck!

This issue has been marked as being beyond the support scope of Accessibility Insights. It will now be closed automatically for house-keeping purposes.