In This Article

AutomationDecoratorAutomationPeer Class

Exposes AutomationDecorator types to UI Automation.

public class AutomationDecoratorAutomationPeer : FrameworkElementAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
Derived:
PopupButtonContentAreaAutomationPeer PopupButtonIndicatorAreaAutomationPeer

Constructors

AutomationDecoratorAutomationPeer(AutomationDecorator)

Exposes AutomationDecorator types to UI Automation.

public AutomationDecoratorAutomationPeer(AutomationDecorator owner)
Parameter Type Description
owner AutomationDecorator

The owner.

Methods

GetAutomationControlTypeCore()

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

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The Custom enumeration value.

GetChildrenCore()

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

protected override List<AutomationPeer>? GetChildrenCore()

Returns

List<AutomationPeer>:

A list of child AutomationPeer elements.

GetClassNameCore()

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

protected override string GetClassNameCore()

Returns

string:

An Empty string.

Extension Methods