Class AutomationPeerBase<T>
Provides a base class that exposes an element to UI Automation.
Inheritance
Namespace: Telerik.Windows.Automation.Peers
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class AutomationPeerBase<T> : FrameworkElementAutomationPeer where T : FrameworkElement
Type Parameters
T
The type of element in the class. |
Constructors
AutomationPeerBase(T)
Initializes a new instance of the AutomationPeerBase class.
Declaration
public AutomationPeerBase(T owner)
Parameters
T
owner
|
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
System.Collections.Generic.IEnumerable<TSource>
source
|
Returns
System.Windows.Automation.Provider.IRawElementProviderSimple[]
Provider collection. |
Type Parameters
TSource
The type of element in the method. |
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
System.String
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
System.String
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
System.Boolean
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
System.Boolean
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
TSource
element
The peer element. |
Returns
System.Windows.Automation.Provider.IRawElementProviderSimple
Provider from type IRawElementProviderSimple. |
Type Parameters
TSource
The type of element in the method. |
SetFocusCore()
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.SetFocus().
Declaration
protected override void SetFocusCore()