In This Article

DockHostAutomationPeer Class

Exposes DockHost types to UI Automation.

public class DockHostAutomationPeer : FrameworkElementAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object

Constructors

DockHostAutomationPeer(DockHost)

Exposes DockHost types to UI Automation.

public DockHostAutomationPeer(DockHost owner)
Parameter Type Description
owner DockHost

The owner element.

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.

GetAutomationIdCore()

Gets the string that uniquely identifies the FrameworkElement that is associated with this FrameworkElementAutomationPeer. Called by GetAutomationId().

protected override string GetAutomationIdCore()

Returns

string:

The automation identifier for the element associated with the FrameworkElementAutomationPeer, or Empty if there isn't an automation identifier.

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.

GetClickablePointCore()

Gets a System.Windows.Point that represents the clickable space that is on the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClickablePoint().

protected override Point GetClickablePointCore()

Returns

Point:

The System.Windows.Point on the element that allows a click. The point values are (NaN, NaN) if the element is not both a HwndSource and a PresentationSource.

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

Extension Methods