BarMenuHeadingAutomationPeer Class
Exposes BarMenuHeading types to UI Automation.
public class BarMenuHeadingAutomationPeer : MenuItemAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer MenuItemAutomationPeer object
Constructors
BarMenuHeadingAutomationPeer(BarMenuHeading)
Initializes a new instance of the BarMenuHeadingAutomationPeer class.
public BarMenuHeadingAutomationPeer(BarMenuHeading owner)
Parameter | Type | Description |
---|---|---|
owner | BarMenuHeading | The owner element. |
Methods
GetAutomationIdCore()
Gets the string that uniquely identifies the FrameworkElement that is associated with this FrameworkElementAutomationPeer. Called by GetAutomationId().
protected override string GetAutomationIdCore()
Returns
- string:
The automation identifier for the element associated with the FrameworkElementAutomationPeer, or Empty if there isn't an automation identifier.
GetChildrenCore()
Gets the collection of child elements of the MenuItem that is associated with this MenuItemAutomationPeer. Called by GetChildren().
protected override List<AutomationPeer> GetChildrenCore()
Returns
- List<AutomationPeer>:
The collection of child elements.
GetClassNameCore()
Gets the name of the MenuItem that is associated with this MenuItemAutomationPeer. Called by GetClassName().
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by GetLocalizedControlType().
GetNameCore()
Gets the text label of the MenuItem that is associated with this MenuItemAutomationPeer. Called by GetName().