Class
RadNavigationViewItemAutomationPeer

Represents an automation peer for the RadNavigationViewItem class, enabling UI automation operations such as invoking actions and managing expand/collapse states. This class inherits from and implements the IInvokeProvider and IExpandCollapseProvider interfaces. It provides the necessary functionality for UI Automation clients to interact with navigation view items effectively, including customizing the retrieval of item properties and supporting patterns related to selection, invocation, and expansion.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class RadNavigationViewItemAutomationPeer : SelectorItemAutomationPeer, IInvokeProvider, IExpandCollapseProvider

Inheritance: objectRadNavigationViewItemAutomationPeer

Implements: IExpandCollapseProviderIInvokeProvider

Constructors

RadNavigationViewItemAutomationPeer(RadNavigationViewItem, SelectorAutomationPeer)

Initializes a new instance of the RadNavigationViewItemAutomationPeer class. Automation Peer for the RadNavigationViewItem class.

Declaration

cs-api-definition
public RadNavigationViewItemAutomationPeer(RadNavigationViewItem owner, SelectorAutomationPeer parentPeer)

Parameters

owner

RadNavigationViewItem

The object that is associated with this AutomationPeer.

parentPeer

SelectorAutomationPeer

The AutomationPeer of the parent RadNavigationView.

RadNavigationViewItemAutomationPeer(object, SelectorAutomationPeer)

Initializes a new instance of the RadNavigationViewItemAutomationPeer class. Automation Peer for the RadNavigationViewItem class.

Declaration

cs-api-definition
public RadNavigationViewItemAutomationPeer(object owner, SelectorAutomationPeer parentPeer)

Parameters

owner

object

The object that is associated with this AutomationPeer.

parentPeer

SelectorAutomationPeer

The AutomationPeer of the parent RadNavigationView.

Properties

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

Declaration

cs-api-definition
public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState

Methods

Collapse()

Hides all nodes, controls, or content that are descendants of the control.

Declaration

cs-api-definition
public void Collapse()

Expand()

Displays all child nodes, controls, or content of the control.

Declaration

cs-api-definition
public void Expand()

GetAutomationControlTypeCore()

Gets the control type for the element that is associated with the UI Automation peer.

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetItemTypeCore()

Declaration

cs-api-definition
protected override string GetItemTypeCore()

Returns

string

GetLocalizedControlTypeCore()

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

GetPattern(PatternInterface)

Retrieves the specified pattern supported by the UI element associated with the current RadNavigationViewItemAutomationPeer instance.

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

The PatternInterface that specifies the pattern to retrieve.

Returns

object

An object that implements the specified pattern interface, or null if the pattern is not supported.

Invoke()

Sends a request to activate a control and initiate its single, unambiguous action.

Declaration

cs-api-definition
public void Invoke()