In This Article

SettingsExpanderAutomationPeer Class

Exposes SettingsExpander types to UI Automation.

public class SettingsExpanderAutomationPeer : ItemsControlAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ItemsControlAutomationPeer object

Constructors

SettingsExpanderAutomationPeer(SettingsExpander)

Initializes a new instance of the class.

public SettingsExpanderAutomationPeer(SettingsExpander owner)
Parameter Type Description
owner SettingsExpander

The owner.

Properties

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState:

The state, expanded or collapsed, of the control.

Methods

Collapse()

Hides all nodes, controls, or content that are descendants of the control.

public void Collapse()

CreateItemAutomationPeer(object)

When overridden in a derived class, creates a new instance of the ItemAutomationPeer for a data item in the Items collection of this ItemsControl.

protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameter Type Description
item object

The data item that is associated with this ItemAutomationPeer.

Returns

ItemAutomationPeer:

The new ItemAutomationPeer created.

Expand()

Displays all child nodes, controls, or content of the control.

public void Expand()

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.

GetLocalizedControlTypeCore()

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

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.