Пример #1
0
 /// <summary>
 /// Creates a <see cref="ListBoxItem"/> element.
 /// </summary>
 public ListBoxItem(FrameworkAutomationElementBase frameworkAutomationElement)
     : base(frameworkAutomationElement)
 {
     _toggleAutomationElement = new ToggleAutomationElement(frameworkAutomationElement);
 }
Пример #2
0
 /// <summary>
 /// Creates a <see cref="TreeItem"/> element.
 /// </summary>
 public TreeItem(FrameworkAutomationElementBase frameworkAutomationElement) : base(frameworkAutomationElement)
 {
     _selectionItemAutomationElement  = new SelectionItemAutomationElement(frameworkAutomationElement);
     _expandCollapseAutomationElement = new ExpandCollapseAutomationElement(frameworkAutomationElement);
     _toggleAutomationElement         = new ToggleAutomationElement(frameworkAutomationElement);
 }
Пример #3
0
 /// <summary>
 /// Creates a <see cref="MenuItem"/> element.
 /// </summary>
 public MenuItem(FrameworkAutomationElementBase frameworkAutomationElement) : base(frameworkAutomationElement)
 {
     _invokeAutomationElement         = new InvokeAutomationElement(frameworkAutomationElement);
     _expandCollapseAutomationElement = new ExpandCollapseAutomationElement(frameworkAutomationElement);
     _toggleAutomationElement         = new ToggleAutomationElement(frameworkAutomationElement);
 }