New to Telerik UI for WPFStart a free 30-day trial

Provides a class that exposes the RadAutoCompleteBox control for UI Automation. This class inherits from and implements the ISelectionProvider and IValueProvider interfaces, enabling automation clients to interact with the RadAutoCompleteBox. The RadAutoCompleteBoxAutomationPeer class allows for interaction with properties such as the selected items, search text, and various display modes. It also facilitates selection operation through the GetSelection() method and allows setting values with the SetValue(string) method. Furthermore, it provides information about the selection mode and value read-only state through properties like CanSelectMultiple and IsReadOnly. This class is designed to enhance accessibility by exposing the underlying control's behavior and state to automation tools, ensuring that users can interact with the RadAutoCompleteBox using assistive technologies.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class RadAutoCompleteBoxAutomationPeer : FrameworkElementAutomationPeer, ISelectionProvider, IValueProvider

Inheritance: objectRadAutoCompleteBoxAutomationPeer

Implements: ISelectionProviderIValueProvider

Constructors

Initializes a new instance of the RadAutoCompleteBoxAutomationPeer class.

C#
public RadAutoCompleteBoxAutomationPeer(FrameworkElement owner)
Parameters:ownerFrameworkElement

The owner.

Properties

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

C#
public bool CanSelectMultiple { get; }
Property Value:

true if multiple selection is allowed; otherwise false.

Gets a value that indicates whether the value of a control is read-only.

C#
public bool IsReadOnly { get; }

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

C#
public bool IsSelectionRequired { get; }
Property Value:

true if selection is required; otherwise false.

Gets the value of the control.

C#
public string Value { get; }

Methods

Gets the collection of child elements of the UIElement that is associated with this . This method is called by .

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

A list of child AutomationPeer elements.

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

C#
protected override string GetItemStatusCore()
Returns:

string

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

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

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

A value from the enumeration.

Returns:

object

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

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

C#
public IRawElementProviderSimple[] GetSelection()
Returns:

IRawElementProviderSimple[]

A collection of UI Automation providers.

Sets the value.

C#
public void SetValue(string value)
Parameters:valuestring

The value.