-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Getting property accValue of IAccessible throws an error:
Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
using System.Windows.Automation;
public object GetValue(AutomationElement element){
object patternObj;
if (element.TryGetCurrentPattern(LegacyIAccessiblePattern.Pattern, out patternObj))
{
var legacyIAccessiblePattern = (LegacyIAccessiblePattern)patternObj;
var iAccessible = legacyIAccessiblePattern.GetIAccessible();
if (iAccessible != null)
{
result = iAccessible.accValue; // ERROR HERE
}
}
return Accessible.accValue;
}
Metadata
Metadata
Assignees
Labels
No labels