Ejemplo n.º 1
0
        public override IUIAutomationElement GetUIAutomationElement(IUIAutomation automation)
        {
            var listElement = _listElement.GetUIAutomationElement(automation);

            var listItems = listElement.FindAll(
                interop.UIAutomationCore.TreeScope.TreeScope_Descendants,
                automation.CreatePropertyCondition(
                    UIA_PropertyIds.UIA_ControlTypePropertyId,
                    UIA_ControlTypeIds.UIA_ListItemControlTypeId));

            return(listItems.GetElement(_index));
        }