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

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:

C#
public class RadNavigationViewItemAutomationPeer : SelectorItemAutomationPeer, IInvokeProvider, IExpandCollapseProvider

Inheritance: objectRadNavigationViewItemAutomationPeer

Implements: IExpandCollapseProviderIInvokeProvider

Constructors

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

C#
public RadNavigationViewItemAutomationPeer(object owner, SelectorAutomationPeer parentPeer)
Parameters:ownerobject

The object that is associated with this AutomationPeer.

parentPeerSelectorAutomationPeer

The AutomationPeer of the parent RadNavigationView.

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

C#
public RadNavigationViewItemAutomationPeer(RadNavigationViewItem owner, SelectorAutomationPeer parentPeer)
Parameters:ownerRadNavigationViewItem

The object that is associated with this AutomationPeer.

parentPeerSelectorAutomationPeer

The AutomationPeer of the parent RadNavigationView.

Properties

ExpandCollapseState

ExpandCollapseState

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

C#
public ExpandCollapseState ExpandCollapseState { get; }

Methods

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

C#
public void Collapse()

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

C#
public void Expand()

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

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

C#
protected override string GetItemStatusCore()
Returns:

string

C#
protected override string GetItemTypeCore()
Returns:

string

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

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

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

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.

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

C#
public void Invoke()