In This Article

BarMainMenuAutomationPeer Class

Exposes BarMainMenu types to UI Automation.

public class BarMainMenuAutomationPeer : MenuAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer MenuAutomationPeer object

Constructors

BarMainMenuAutomationPeer(BarMainMenu)

Initializes a new instance of the BarMainMenuAutomationPeer class.

public BarMainMenuAutomationPeer(BarMainMenu owner)
Parameter Type Description
owner BarMainMenu

The owner element.

Methods

GetAutomationControlTypeCore()

Gets the control type for the Menu that is associated with this MenuAutomationPeer. This method is called by GetAutomationControlType().

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The Menu enumeration value.

GetClassNameCore()

Gets the name of the Menu that is associated with this MenuAutomationPeer. This method is called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

A string that contains "Menu".

GetLocalizedControlTypeCore()

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

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.