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

Represents the automation peer for the RadListBox control, enabling accessibility features and interactions with UI Automation clients. This class provides various functionalities, including retrieving selection details, scrolling capabilities, and exposing custom properties of the control for automation purposes. It inherits from ItemsControlAutomationPeer and implements interfaces ISelectionProvider and IScrollProvider.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class RadListBoxAutomationPeer : ItemsControlAutomationPeer, ISelectionProvider, IScrollProvider

Inheritance: objectRadListBoxAutomationPeer

Derived Classes: GalleryAutomationPeerRadClockAutomationPeer

Implements: IScrollProviderISelectionProvider

Constructors

Initializes a new instance of the RadListBoxAutomationPeer class.

C#
public RadListBoxAutomationPeer(RadListBox owner)
Parameters:ownerRadListBox

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; }

Gets a value that indicates whether the control can scroll horizontally.

C#
public bool HorizontallyScrollable { get; }

Gets the current horizontal scroll position.

C#
public double HorizontalScrollPercent { get; }

Gets the current horizontal view size.

C#
public double HorizontalViewSize { 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; }

Gets a value that indicates whether the control can scroll vertically.

C#
public bool VerticallyScrollable { get; }

Gets the current vertical scroll position.

C#
public double VerticalScrollPercent { get; }

Gets the vertical view size.

C#
public double VerticalViewSize { get; }

Methods

Creates a new instance of the System.Windows.Automation.Peers.ItemAutomationPeer for a data item in the System.Windows.Controls.ItemsControl.Items collection of this System.Windows.Controls.ItemsControl.

C#
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameters:itemobjectReturns:

ItemAutomationPeer

GetAutomationControlTypeCore()

AutomationControlType

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType().

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

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.

GetOrientationCore()

AutomationOrientation

Gets a value that indicates whether the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer is laid out in a specific direction. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetOrientation().

C#
protected override AutomationOrientation GetOrientationCore()
Returns:

AutomationOrientation

Gets the pattern.

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

object

GetSelection()

IRawElementProviderSimple[]

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

C#
public IRawElementProviderSimple[] GetSelection()
Returns:

IRawElementProviderSimple[]

Scrolls the visible region of the content area horizontally and vertically.

C#
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters:horizontalAmountScrollAmountverticalAmountScrollAmount

Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

C#
public void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters:horizontalPercentdoubleverticalPercentdouble