In This Article

StandardSwitcherAutomationPeer Class

Exposes StandardSwitcher types to UI Automation.

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

Constructors

StandardSwitcherAutomationPeer(StandardSwitcher)

Exposes StandardSwitcher types to UI Automation.

public StandardSwitcherAutomationPeer(StandardSwitcher owner)
Parameter Type Description
owner StandardSwitcher

The owner element.

Properties

CanSelectMultiple

Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.

public bool CanSelectMultiple { get; }

Property Value

bool:

true if multiple selection is allowed; otherwise false.

IsSelectionRequired

Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.

public bool IsSelectionRequired { get; }

Property Value

bool:

true if selection is required; otherwise false.

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.

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.

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.

GetPattern(PatternInterface)

Gets the control pattern for the UIElement that is associated with this UIElementAutomationPeer.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

A value from the enumeration.

Returns

object:

An object that implements the ISynchronizedInputProvider interface if patternInterface is SynchronizedInput; otherwise, null.

GetSelection()

Retrieves a UI Automation provider for each child element that is selected.

public IRawElementProviderSimple[] GetSelection()

Returns

IRawElementProviderSimple[]:

A collection of UI Automation providers.

Extension Methods