In This Article

TreeListBoxAutomationPeer Class

Exposes TreeListBox types to UI Automation.

public class TreeListBoxAutomationPeer : ItemsControlAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ItemsControlAutomationPeer object
Derived:
TreeListViewAutomationPeer

Constructors

TreeListBoxAutomationPeer(TreeListBox)

Exposes TreeListBox types to UI Automation.

public TreeListBoxAutomationPeer(TreeListBox owner)
Parameter Type Description
owner TreeListBox

The owner element.

Methods

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.

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.

GetLocalizedControlTypeCore()

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

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

Extension Methods