Esempio n. 1
0
        public AccessibilityNode(FrameworkElement owner, IDictionary <string, IValue> node, AccessibilityTree accessibilityTree) : base(owner)
        {
            this.accessibilityTree = accessibilityTree;

            this.childIds = new HashSet <int>();

            Update(node);
        }
Esempio n. 2
0
        public virtual void OnAccessibilityTreeChange(string treeId, IDictionary <string, IValue> accessibilityUpdateDictionary)
        {
            AccessibilityTree accessibilityTree;

            if (accessibilityTrees.ContainsKey(treeId))
            {
                accessibilityTree = accessibilityTrees[treeId];
            }
            else
            {
                accessibilityTree = new AccessibilityTree((FrameworkElement)Owner, treeId);
                accessibilityTrees.Add(treeId, accessibilityTree);

                RaiseAutomationEvent(AutomationEvents.StructureChanged);
            }

            accessibilityTree.Update(accessibilityUpdateDictionary);
        }