AutomationDecoratorAutomationPeer Class
Exposes AutomationDecorator types to UI Automation.
public class AutomationDecoratorAutomationPeer : FrameworkElementAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
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
nullif the AutomationDecorator that is associated with this element has set the AreChildrenIncluded property tofalse.
GetClassNameCore()
Gets the name of the UIElement that is associated with this AutomationDecoratorAutomationPeer. This method is called by GetClassName().