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