ClassAutomationPeerBase<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:
public class AutomationPeerBase<T> : FrameworkElementAutomationPeer where T : FrameworkElement
Inheritance: objectAutomationPeerBase<T>
Derived Classes:
Constructors
AutomationPeerBase(T)
Initializes a new instance of the AutomationPeerBase class.
Declaration
public AutomationPeerBase(T owner)
Parameters
owner
T
Properties
CurrentOwner
Gets the owner UI control for the current automation element.
Declaration
protected T CurrentOwner { get; }
Property Value
T
Methods
GenerateIRawElementProviderSimple<TSource>(IEnumerable<TSource>)
Retrieves a collection of UI Automation provider from given peer collection.
Declaration
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
protected override string GetClassNameCore()
Returns
The class name.
GetItemTypeCore()
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetItemType().
Declaration
protected override string GetItemTypeCore()
Returns
The kind of item.
IsEnabledCore()
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsEnabled().
Declaration
protected override bool IsEnabledCore()
Returns
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
protected override bool IsKeyboardFocusableCore()
Returns
true if the element can accept keyboard focus; otherwise, false.
ProviderFromElement<TSource>(TSource)
Retrieves a UI Automation provider for current element.
Declaration
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
protected override void SetFocusCore()