In This Article

BarMenuControlWrapperAutomationPeer Class

Exposes BarMenuControlWrapper types to UI Automation.

public class BarMenuControlWrapperAutomationPeer : MenuItemAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer MenuItemAutomationPeer object

Constructors

BarMenuControlWrapperAutomationPeer(BarMenuControlWrapper)

Initializes a new instance of the BarMenuControlWrapperAutomationPeer class.

public BarMenuControlWrapperAutomationPeer(BarMenuControlWrapper owner)
Parameter Type Description
owner BarMenuControlWrapper

The owner element.

Methods

GetClassNameCore()

Gets the name of the MenuItem that is associated with this MenuItemAutomationPeer. Called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

A string that contains "MenuItem".

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetNameCore()

Gets the text label of the MenuItem that is associated with this MenuItemAutomationPeer. Called by GetName().

protected override string GetNameCore()

Returns

string:

The string that contains the label.