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

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:

C#
public class AutomationPeerBase<T> : FrameworkElementAutomationPeer where T : FrameworkElement

Inheritance: objectAutomationPeerBase<T>

Derived Classes: AppointmentItemAutomationPeerAppointmentsPanelAutomationPeerGroupHeaderAutomationPeerRadScheduleViewAutomationPeer

Constructors

Initializes a new instance of the AutomationPeerBase class.

C#
public AutomationPeerBase(T owner)
Parameters:ownerT

Properties

Gets the owner UI control for the current automation element.

C#
protected T CurrentOwner { get; }

Methods

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

C#
protected IRawElementProviderSimple[] GenerateIRawElementProviderSimple<TSource>(IEnumerable<TSource> source) where TSource : UIElement
Parameters:sourceIEnumerable<TSource>Returns:

IRawElementProviderSimple[]

Provider collection.

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.

C#
protected override string GetClassNameCore()
Returns:

string

The class name.

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

C#
protected override string GetItemTypeCore()
Returns:

string

The kind of item.

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

C#
protected override bool IsEnabledCore()
Returns:

bool

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

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

C#
protected override bool IsKeyboardFocusableCore()
Returns:

bool

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

Retrieves a UI Automation provider for current element.

C#
protected IRawElementProviderSimple ProviderFromElement<TSource>(TSource element) where TSource : UIElement
Parameters:elementTSource

The peer element.

Returns:

IRawElementProviderSimple

Provider from type IRawElementProviderSimple.

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

C#
protected override void SetFocusCore()