/// <summary> /// Creates a <see cref="TreeItem"/> element. /// </summary> public TreeItem(FrameworkAutomationElementBase frameworkAutomationElement) : base(frameworkAutomationElement) { _selectionItemAutomationElement = new SelectionItemAutomationElement(frameworkAutomationElement); _expandCollapseAutomationElement = new ExpandCollapseAutomationElement(frameworkAutomationElement); }
/// <summary> /// Creates a <see cref="TreeItem"/> element. /// </summary> public TreeItem(BasicAutomationElementBase basicAutomationElement) : base(basicAutomationElement) { _selectionItemAutomationElement = new SelectionItemAutomationElement(basicAutomationElement); _expandCollapseAutomationElement = new ExpandCollapseAutomationElement(basicAutomationElement); }