Table of Contents

Class ZomboBoxItemAutomationPeer

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

Dropdown item UIA peer, similar to a ListBox item

public sealed class ZomboBoxItemAutomationPeer : FrameworkElementAutomationPeer, IInvokeProvider, ISelectionItemProvider
Inheritance
ZomboBoxItemAutomationPeer
Implements
Inherited Members

Constructors

ZomboBoxItemAutomationPeer(ZomboBoxItem)

Dropdown item UIA peer, similar to a ListBox item

public ZomboBoxItemAutomationPeer(ZomboBoxItem owner)

Parameters

owner ZomboBoxItem

Properties

IsSelected

Gets a value that indicates whether an item is selected.

public bool IsSelected { get; }

Property Value

bool

true if the element is selected; otherwise false.

SelectionContainer

Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

public IRawElementProviderSimple? SelectionContainer { get; }

Property Value

IRawElementProviderSimple

The provider that supports ISelectionProvider.

Methods

AddToSelection()

Adds the current element to the collection of selected items.

public void AddToSelection()

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.

GetPattern(PatternInterface)

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

public override object? GetPattern(PatternInterface patternInterface)

Parameters

patternInterface PatternInterface

A value from the enumeration.

Returns

object

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

Invoke()

Sends a request to activate a control and initiate its single, unambiguous action.

public void Invoke()

Exceptions

ElementNotEnabledException

If the control is not enabled.

RemoveFromSelection()

Removes the current element from the collection of selected items.

public void RemoveFromSelection()

Select()

Deselects any selected items and then selects the current element.

public void Select()