We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

WpfMenu Constructor (UITestControl)

Initializes a new instance of the WpfMenu class by using the provided parent control.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.WpfControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public WpfMenu(
	UITestControl parent
)

Parameters

parent
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
A UITestControl object that contains this menu control.

Show: