In This Article

RibbonGalleryAutomationPeer Class

Exposes RibbonGallery types to UI Automation.

public class RibbonGalleryAutomationPeer : BarGalleryBaseAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ItemsControlAutomationPeer SelectorAutomationPeer BarGalleryBaseAutomationPeer object

Constructors

RibbonGalleryAutomationPeer(RibbonGallery)

Initializes a new instance of the RibbonGalleryAutomationPeer class.

public RibbonGalleryAutomationPeer(RibbonGallery owner)
Parameter Type Description
owner RibbonGallery

The owner element.

Methods

GetChildrenCore()

Gets the collection of child elements of the ItemsControl that is associated with this ItemsControlAutomationPeer. This method is called by GetChildren().

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

The collection of child elements.

GetHelpTextCore()

Gets the string that describes the functionality of the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetHelpText().

protected override string GetHelpTextCore()

Returns

string:

The help text, usually from the ToolTip, or Empty if there is no help text.

GetLocalizedControlTypeCore()

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

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetPattern(PatternInterface)

Gets the control pattern for the Selector that is associated with this SelectorAutomationPeer.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

A value in the enumeration.

Returns

object:

If patternInterface is Selection, this method returns a pointer to the current instance; otherwise null.

Inherited Members