In This Article

AutomationDecorator Class

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

public class AutomationDecorator : Decorator, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Decorator Object
Derived:
PopupButtonContentAreaAutomationDecorator PopupButtonIndicatorAreaAutomationDecorator

Constructors

AutomationDecorator()

public AutomationDecorator()

Properties

AreChildrenIncluded

Gets or sets if children of this element should be hidden from the UI Automation framework.

public bool AreChildrenIncluded { get; set; }

Property Value

System.Boolean:

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

ControlType

Gets or sets the AutomationControlType used by this control in the WPF automation framework.

public AutomationControlType ControlType { get; set; }

Property Value

AutomationControlType:

The AutomationControlType used by this control. The default value is AutomationControlType.Pane.

Methods

OnCreateAutomationPeer()

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

protected override AutomationPeer OnCreateAutomationPeer()

Returns

System.Windows.Automation.Peers.AutomationPeer:

An instance of AutomationDecoratorAutomationPeer.

Fields

AreChildrenIncludedProperty

Identifies the AreChildrenIncluded dependency property. This field is read-only.

public static readonly DependencyProperty AreChildrenIncludedProperty

ControlTypeProperty

Identifies the ControlType dependency property. This field is read-only.

public static readonly DependencyProperty ControlTypeProperty

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods