In This Article

PopupButtonAutomationPeer Class

Exposes PopupButton types to UI Automation.

public class PopupButtonAutomationPeer : ButtonAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ButtonBaseAutomationPeer ButtonAutomationPeer object
Derived:
RibbonGroupCollapsedButtonAutomationPeer RibbonQuickAccessToolBarOverflowButtonAutomationPeer StandaloneToolBarOverflowButtonAutomationPeer

Constructors

PopupButtonAutomationPeer(PopupButton)

Initializes a new instance of the PopupButtonAutomationPeer class.

public PopupButtonAutomationPeer(PopupButton owner)
Parameter Type Description
owner PopupButton

The owner.

Methods

GetAutomationControlTypeCore()

Gets the control type of the element that is associated with the UI Automation peer.

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

SplitButton if the owning PopupButton has DisplayMode set to Split; otherwise Button.

GetClassNameCore()

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

protected override string GetClassNameCore()

Returns

string:

The Type.Name of the Owner.

GetPattern(PatternInterface)

Gets the object that supports the specified control pattern of the element that is associated with this automation peer.

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

A value in the enumeration.

Returns

object:

This method will return a this pointer in the follow cases: