Class
AutomationPeerBase<T>

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

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.ScheduleView.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: AppointmentItemAutomationPeerAppointmentsPanelAutomationPeerGroupHeaderAutomationPeerRadScheduleViewAutomationPeer

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()

Gets a name that is used with System.Windows.Automation.Peers.AutomationControlType, to differentiate the control that is represented by this System.Windows.Automation.Peers.AutomationPeer.

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

The class name.

GetItemTypeCore()

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

Declaration

cs-api-definition
protected override string GetItemTypeCore()

Returns

string

The kind of item.

IsEnabledCore()

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

Declaration

cs-api-definition
protected override bool IsEnabledCore()

Returns

bool

true if the automation peer can receive and send events; otherwise, false.

IsKeyboardFocusableCore()

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

Declaration

cs-api-definition
protected override bool IsKeyboardFocusableCore()

Returns

bool

true if the element can accept keyboard focus; otherwise, false.

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.

SetFocusCore()

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

Declaration

cs-api-definition
protected override void SetFocusCore()