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)

Initializes a new instance of the AutomationDecoratorAutomationPeer class.

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 AutomationDecoratorAutomationPeer. This method is called by GetAutomationControlType().

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The AutomationControlType specified in the owning AutomationDecorator.

GetChildrenCore()

Gets the collection of child elements of the UIElement that is associated with this AutomationDecoratorAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetChildren.

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

A list of child AutomationPeer elements, or null if the AutomationDecorator that is associated with this element has set the AreChildrenIncluded property to false.

GetClassNameCore()

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

protected override string GetClassNameCore()

Returns

string:

The Type.Name of the Owner.