In This Article

BarContextMenuAutomationPeer Class

Exposes BarContextMenu types to UI Automation.

public class BarContextMenuAutomationPeer : ContextMenuAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ContextMenuAutomationPeer object

Constructors

BarContextMenuAutomationPeer(BarContextMenu)

Initializes a new instance of the BarContextMenuAutomationPeer class.

public BarContextMenuAutomationPeer(BarContextMenu owner)
Parameter Type Description
owner BarContextMenu

The owner element.

Methods

GetClassNameCore()

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

protected override string GetClassNameCore()

Returns

string:

A string that contains "ContextMenu".

GetLocalizedControlTypeCore()

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

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.