In This Article

AutomationDecorator Class

Represents a decorator that is visible in the UI automation framework.

public class AutomationDecorator : Decorator
Inheritance:
object Visual UIElement FrameworkElement Decorator object
Derived:
PopupButtonContentAreaAutomationDecorator PopupButtonIndicatorAreaAutomationDecorator

Constructors

AutomationDecorator()

Initializes an instance of the class.

public AutomationDecorator()

Properties

AreChildrenIncluded

Indicates if children of this element should be hidden from the UI Automation framework.

public bool AreChildrenIncluded { get; set; }

Property Value

bool:

true to hide children. false to show children. The default value is false.

ControlType

The AutomationControlType used by this control in the WPF automation framework.

public AutomationControlType ControlType { get; set; }

Property Value

AutomationControlType:

The default value is AutomationControlType.Pane.

Methods

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

Fields

AreChildrenIncludedProperty

Defines the AreChildrenIncluded property.

public static readonly DependencyProperty AreChildrenIncludedProperty

ControlTypeProperty

Defines the ControlType property.

public static readonly DependencyProperty ControlTypeProperty

Extension Methods