Class FieldControlAutomationPeer
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
ownerFieldControl
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
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.