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:
public class RadNavigationViewItemAutomationPeer : SelectorItemAutomationPeer, IInvokeProvider, IExpandCollapseProvider
Inheritance: objectRadNavigationViewItemAutomationPeer
Implements:
Constructors
Initializes a new instance of the RadNavigationViewItemAutomationPeer class. Automation Peer for the RadNavigationViewItem class.
public RadNavigationViewItemAutomationPeer(object owner, SelectorAutomationPeer parentPeer)
The object that is associated with this AutomationPeer.
parentPeerSelectorAutomationPeerThe AutomationPeer of the parent RadNavigationView.
Initializes a new instance of the RadNavigationViewItemAutomationPeer class. Automation Peer for the RadNavigationViewItem class.
public RadNavigationViewItemAutomationPeer(RadNavigationViewItem owner, SelectorAutomationPeer parentPeer)
The object that is associated with this AutomationPeer.
parentPeerSelectorAutomationPeerThe AutomationPeer of the parent RadNavigationView.
Properties
ExpandCollapseState
ExpandCollapseState
Gets the state, expanded or collapsed, of the control.
public ExpandCollapseState ExpandCollapseState { get; }
Methods
Hides all nodes, controls, or content that are descendants of the control.
public void Collapse()
Displays all child nodes, controls, or content of the control.
public void Expand()
Gets the control type for the element that is associated with the UI Automation peer.
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
Retrieves the specified pattern supported by the UI element associated with the current RadNavigationViewItemAutomationPeer instance.
public override object GetPattern(PatternInterface patternInterface)
The PatternInterface that specifies the pattern to retrieve.
Returns: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.
public void Invoke()