Class
RadContextMenuAutomationPeer

The AutomationPeer associated with the RadContextMenu class.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
[Obsolete("Use the RadContextMenuAutomationPeer that is under the Telerik.Windows.Automation.Peers namespace")]
public class RadContextMenuAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider

Inheritance: objectRadContextMenuAutomationPeer

Derived Classes: RadContextMenuAutomationPeer

Implements: IExpandCollapseProvider

Constructors

RadContextMenuAutomationPeer(RadContextMenu)

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

Declaration

cs-api-definition
public RadContextMenuAutomationPeer(RadContextMenu owner)

Parameters

owner

RadContextMenu

The object that is associated with this AutomationPeer.

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

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

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

The AutomationControlType.Menu enumeration value.

GetClassNameCore()

Returns the name of the class associated with this AutomationPeer. This method is called by AutomationPeer.GetClassName.

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetNameCore()

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

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

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