New to Telerik UI for WPF? Start a free 30-day trial

Provides the AutomationPeer for the RadContextMenu class. This class is responsible for exposing the properties and behaviors of the RadContextMenu to accessibility clients, allowing them to interact with the RadContextMenu in a meaningful way.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class RadContextMenuAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider

Inheritance: objectRadContextMenuAutomationPeer

Implements: IExpandCollapseProvider

Constructors

Initializes a new instance of the RadContextMenuAutomationPeer class. Automation Peer for the RadContextMenu class.

C#
public RadContextMenuAutomationPeer(RadContextMenu owner)
Parameters:ownerRadContextMenu

The object that is associated with this AutomationPeer.

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()

Returns the control type for the UIElement associated with this AutomationPeer. This method is called by AutomationPeer.GetAutomationControlType.

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

The AutomationControlType.Menu enumeration value.

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

C#
protected override string GetItemStatusCore()
Returns:

string

Returns the text label of the FrameworkElement associated with this AutomationPeers. Called by AutomationPeer.GetName.

C#
protected override string GetNameCore()
Returns:

string

A text label of the Element associated with this Automation Peer.