ClassRadNavigationViewItemAutomationPeer
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
RadNavigationViewItemAutomationPeer(RadNavigationViewItem, SelectorAutomationPeer)
Initializes a new instance of the RadNavigationViewItemAutomationPeer class. Automation Peer for the RadNavigationViewItem class.
Declaration
public RadNavigationViewItemAutomationPeer(RadNavigationViewItem owner, SelectorAutomationPeer parentPeer)
Parameters
owner
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
public RadNavigationViewItemAutomationPeer(object owner, SelectorAutomationPeer parentPeer)
Parameters
owner
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
public ExpandCollapseState ExpandCollapseState { get; }
Property Value
ExpandCollapseState
Methods
Collapse()
Hides all nodes, controls, or content that are descendants of the control.
Declaration
public void Collapse()
Expand()
Displays all child nodes, controls, or content of the control.
Declaration
public void Expand()
GetAutomationControlTypeCore()
Gets the control type for the element that is associated with the UI Automation peer.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
GetLocalizedControlTypeCore()
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
GetPattern(PatternInterface)
Retrieves the specified pattern supported by the UI element associated with the current RadNavigationViewItemAutomationPeer instance.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
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.
Invoke()
Sends a request to activate a control and initiate its single, unambiguous action.
Declaration
public void Invoke()