dotnet / dotnet/wpf

Using UIAutomation to find an ItemsControl's selected item

Open
#2,474 3 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Hi,
I am trying to use UIAutomation to find the selected item from an ItemsControl, is this possible? I have looked at the ItemsControlAutomationPeer and it seems that FindItemByProperty can only have the propertyId for Name, AutomationId and ControlType passed into it, is that correct?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.