protected override void AddProperties(PropertyList list, PropertyOptions options) { list.AddProperty("WindowHandle", _hwnd); base.AddProperties(list, options); var group = list.AddGroup("Focused element"); group.LoadChildren = () => { int vmid; JavaObjectHandle ac; if (Failed(AccessBridge.Functions.GetAccessibleContextWithFocus(_hwnd, out vmid, out ac))) { group.AddProperty("<Error>", "Error retrieving focused element"); } else { AddSubContextProperties(group.Children, options, ac); } }; }
public PropertyGroup AddGroup(string name, object value = null) { return(_children.AddGroup(name, value)); }