Class
AutomationPeerBase<T>

Provides a base class that exposes an element to UI Automation.

Definition

Namespace:Telerik.UI.Automation.Peers

Assembly:Telerik.WinUI.Controls.dll

Type Parameters:

T

The type of element in the class.

Syntax:

cs-api-definition
public class AutomationPeerBase<T> : FrameworkElementAutomationPeer where T : FrameworkElement

Inheritance: objectAutomationPeerBase<T>

Derived Classes: AppointmentItemAutomationPeerAppointmentsPanelAutomationPeerGroupHeaderAutomationPeerRadSchedulerAutomationPeer

Constructors

AutomationPeerBase(T)

Initializes a new instance of the AutomationPeerBase class.

Declaration

cs-api-definition
public AutomationPeerBase(T owner)

Parameters

owner

T

Properties

CurrentOwner

Gets the owner UI control for the current automation element.

Declaration

cs-api-definition
protected T CurrentOwner { get; }

Property Value

T

Methods

GenerateIRawElementProviderSimple<TSource>(IEnumerable<TSource>)

Retrieves a collection of UI Automation provider from given peer collection.

Declaration

cs-api-definition
protected IRawElementProviderSimple[] GenerateIRawElementProviderSimple<TSource>(IEnumerable<TSource> source) where TSource : UIElement

Parameters

source

IEnumerable<TSource>

Returns

IRawElementProviderSimple[]

Provider collection.

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetItemTypeCore()

Declaration

cs-api-definition
protected override string GetItemTypeCore()

Returns

string

IsEnabledCore()

Declaration

cs-api-definition
protected override bool IsEnabledCore()

Returns

bool

IsKeyboardFocusableCore()

Declaration

cs-api-definition
protected override bool IsKeyboardFocusableCore()

Returns

bool

ProviderFromElement<TSource>(TSource)

Retrieves a UI Automation provider for current element.

Declaration

cs-api-definition
protected IRawElementProviderSimple ProviderFromElement<TSource>(TSource element) where TSource : UIElement

Parameters

element

TSource

The peer element.

Returns

IRawElementProviderSimple

Provider from type IRawElementProviderSimple.