예제 #1
0
 public TreeViewItem(BasicAutomationElementBase basicAutomationElement)
     : base(basicAutomationElement)
 {
     this.selectionItemAutomationElement  = new SelectionItemAutomationElement(basicAutomationElement);
     this.expandCollapseAutomationElement = new ExpandCollapseAutomationElement(basicAutomationElement);
     this.treeViewItemCondition           = this.ConditionFactory.ByControlType(ControlType.TreeItem);
 }
예제 #2
0
 public MenuItem(BasicAutomationElementBase basicAutomationElement)
     : base(basicAutomationElement)
 {
     this.invokeAutomationElement         = new InvokeAutomationElement(basicAutomationElement);
     this.expandCollapseAutomationElement = new ExpandCollapseAutomationElement(basicAutomationElement);
 }