How to set the accessible name for WPF combobox item or listbox item?

Viewed 33

I have a VS extension project in which we create some UI elements using WPF. I try to set “AutomationProperties” for ComboBox items and ListBox items. (not ComboBox and ListBox themselves)

But the narrator can not announce the “AutomationProperties.Name” for items in ComboBox/ListBox when item is selected. It’s always announcing the class name for the items.

I use “DataTemplate” for the itemtemplate like: 1 2

And I am using Visual Studio 2022.

Can anyone help on this?

0 Answers
Related