This class is an implementation of the automation peer for the RadCalendar control. It enables UI Automation by exposing properties and patterns required for accessibility. This includes supporting multiple views, selection capabilities, and grid-like behavior for child elements. The class implements several automation provider interfaces such as IMultipleViewProvider, ISelectionProvider, ITableProvider, and IGridProvider to facilitate diverse automation functionalities including retrieving selected items, row and column counts, and navigation capabilities within the calendar control. In addition, it handles the management of view modes and localized control types, ensuring that appropriate names and values are provided for accessibility tools.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class RadCalendarAutomationPeer : FrameworkElementAutomationPeer, IMultipleViewProvider, ISelectionProvider, ITableProvider, IGridProvider
Inheritance: objectRadCalendarAutomationPeer
Implements:
Constructors
Initializes a new instance of the RadCalendarAutomationPeer class.
Properties
Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.
public bool CanSelectMultiple { get; }
true if multiple selection is allowed; otherwise false.
Gets the total number of columns in a grid.
public int ColumnCount { get; }
The total number of columns in a grid.
Gets the current control-specific view.
public int CurrentView { get; }
The value for the current view of the UI Automation element.
Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.
public bool IsSelectionRequired { get; }
true if selection is required; otherwise false.
Gets the total number of rows in a grid.
public int RowCount { get; }
The total number of rows in a grid.
RowOrColumnMajor
RowOrColumnMajor
Retrieves the primary direction of traversal for the table.
public RowOrColumnMajor RowOrColumnMajor { get; }
The primary direction of traversal.
Methods
Gets the control type for the UIElement that is associated with this . This method is called by .
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
The enumeration value.
Gets the collection of child elements of the UIElement that is associated with this . This method is called by .
protected override List<AutomationPeer> GetChildrenCore()
List<AutomationPeer>
A list of child AutomationPeer elements.
Gets a collection of UI Automation providers that represents all the column headers in a table.
public IRawElementProviderSimple[] GetColumnHeaders()
IRawElementProviderSimple[]
A collection of UI Automation providers.
Retrieves the UI Automation provider for the specified cell.
When overridden in a derived class, is called by .
Gets the text label of the that is associated with this . Called by .
protected override string GetNameCore()
The text label of the element that is associated with this automation peer.
Gets the control pattern for the UIElement that is associated with this .
public override object GetPattern(PatternInterface patternInterface)
A value from the enumeration.
Returns:An object that implements the
interface if patternInterface is ;
otherwise, null.
Retrieves a collection of UI Automation providers that represents all row headers in the table.
public IRawElementProviderSimple[] GetRowHeaders()
IRawElementProviderSimple[]
A collection of UI Automation providers.
Retrieves a UI Automation provider for each child element that is selected.
public IRawElementProviderSimple[] GetSelection()
IRawElementProviderSimple[]
A collection of UI Automation providers.
Retrieves a collection of control-specific view identifiers.
public int[] GetSupportedViews()
int[]
A collection of values that identifies the views available for a UI Automation element.
Retrieves the name of a control-specific view.
public string GetViewName(int viewId)
The view identifier.
Returns:A localized name for the view.
Exceptions:viewId is not a member of the supported views collection.
Sets the current control-specific view.
public void SetCurrentView(int viewId)
A view identifier.
Exceptions:viewId is not a member of the supported views collection.