Table of Contents

Class FieldControlAutomationPeer

Namespace
The.WPF.Controls
Assembly
Instagile.WPF.dll

Exposes the field to UI Automation as a group named after its label. The label itself is a TextBlock inside the control template, which WPF excludes from the UIA control view, so without this peer assistive technology and UI tests cannot tell fields apart.

public class FieldControlAutomationPeer : FrameworkElementAutomationPeer
Inheritance
FieldControlAutomationPeer
Inherited Members

Constructors

FieldControlAutomationPeer(FieldControl)

public FieldControlAutomationPeer(FieldControl owner)

Parameters

owner FieldControl

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.

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.

GetNameCore()

Gets the text label of the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetName().

protected override string GetNameCore()

Returns

string

The text label of the element that is associated with this automation peer.