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

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:

C#
public class RadCalendarAutomationPeer : FrameworkElementAutomationPeer, IMultipleViewProvider, ISelectionProvider, ITableProvider, IGridProvider

Inheritance: objectRadCalendarAutomationPeer

Implements: IGridProviderIMultipleViewProviderISelectionProviderITableProvider

Constructors

Initializes a new instance of the RadCalendarAutomationPeer class.

C#
public RadCalendarAutomationPeer(RadCalendar owner)
Parameters:ownerRadCalendar

The owner.

Properties

Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.

C#
public bool CanSelectMultiple { get; }
Property Value:

true if multiple selection is allowed; otherwise false.

Gets the total number of columns in a grid.

C#
public int ColumnCount { get; }
Property Value:

The total number of columns in a grid.

Gets the current control-specific view.

C#
public int CurrentView { get; }
Property Value:

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.

C#
public bool IsSelectionRequired { get; }
Property Value:

true if selection is required; otherwise false.

Gets the total number of rows in a grid.

C#
public int RowCount { get; }
Property Value:

The total number of rows in a grid.

RowOrColumnMajor

RowOrColumnMajor

Retrieves the primary direction of traversal for the table.

C#
public RowOrColumnMajor RowOrColumnMajor { get; }
Property Value:

The primary direction of traversal.

Methods

Gets the control type for the UIElement that is associated with this . This method is called by .

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

The enumeration value.

Gets the collection of child elements of the UIElement that is associated with this . This method is called by .

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

A list of child AutomationPeer elements.

C#
protected override string GetClassNameCore()
Returns:

string

Gets a collection of UI Automation providers that represents all the column headers in a table.

C#
public IRawElementProviderSimple[] GetColumnHeaders()
Returns:

IRawElementProviderSimple[]

A collection of UI Automation providers.

C#
protected override string GetHelpTextCore()
Returns:

string

Retrieves the UI Automation provider for the specified cell.

C#
public IRawElementProviderSimple GetItem(int row, int column)
Parameters:rowint

The ordinal number of the row of interest.

columnint

The ordinal number of the column of interest.

Returns:

IRawElementProviderSimple

The UI Automation provider for the specified cell.

C#
protected override string GetItemStatusCore()
Returns:

string

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

Gets the text label of the that is associated with this . Called by .

C#
protected override string GetNameCore()
Returns:

string

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 .

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

A value from the enumeration.

Returns:

object

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.

C#
public IRawElementProviderSimple[] GetRowHeaders()
Returns:

IRawElementProviderSimple[]

A collection of UI Automation providers.

Retrieves a UI Automation provider for each child element that is selected.

C#
public IRawElementProviderSimple[] GetSelection()
Returns:

IRawElementProviderSimple[]

A collection of UI Automation providers.

Retrieves a collection of control-specific view identifiers.

C#
public int[] GetSupportedViews()
Returns:

int[]

A collection of values that identifies the views available for a UI Automation element.

Retrieves the name of a control-specific view.

C#
public string GetViewName(int viewId)
Parameters:viewIdint

The view identifier.

Returns:

string

A localized name for the view.

Exceptions:

ArgumentException

viewId is not a member of the supported views collection.

Sets the current control-specific view.

C#
public void SetCurrentView(int viewId)
Parameters:viewIdint

A view identifier.

Exceptions:

ArgumentException

viewId is not a member of the supported views collection.