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

The AutomationPeer associated with the RadMenuItem class.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[Obsolete("Use the RadMenuItemAutomationPeer that is under the Telerik.Windows.Automation.Peers namespace")]
public class RadMenuItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IToggleProvider, IInvokeProvider

Inheritance: objectRadMenuItemAutomationPeer

Derived Classes: RadMenuItemAutomationPeer

Implements: IExpandCollapseProviderIInvokeProviderIToggleProvider

Constructors

Initializes a new instance of the RadMenuItemAutomationPeer class. Automation Peer for the RadMenuItem class.

C#
public RadMenuItemAutomationPeer(RadMenuItem owner)
Parameters:ownerRadMenuItem

The object that is associated with this AutomationPeer.

Properties

ExpandCollapseState

ExpandCollapseState

IExpandCollapseProvider implementation.

C#
public ExpandCollapseState ExpandCollapseState { get; }

ToggleState

ToggleState

IToggleProvider implementation.

C#
public ToggleState ToggleState { get; }

Methods

IExpandCollapseProvider implementation.

C#
public void Collapse()

IExpandCollapseProvider implementation.

C#
public void Expand()

Returns the access key for the UIElement associated with this AutomationPeer. This method is called by AutomationPeer.GetAccessKey.

C#
protected override string GetAccessKeyCore()
Returns:

string

The access key for the UIElement associated with this AutomationPeer.

GetAutomationControlTypeCore()

AutomationControlType

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.MenuItem enumeration value.

GetChildrenCore()

List<AutomationPeer>

Get the children collection of the UIElement associated with this AutomationPeers. This method is called by AutomationPeer.GetChildren.

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

A list of child System.Windows.Automation.Peers.AutomationPeer elements.

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

C#
protected override string GetClassNameCore()
Returns:

string

Returns the name of the UIElement associated with this AutomationPeer.

C#
protected override string GetNameCore()
Returns:

string

Returns the control pattern for the UIElement that is associated with this AutomationPeer.

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

One of the PatternInterface enum values.

Returns:

object

IInvokeProvider implementation.

C#
public void Invoke()

Returns a value that indicates whether the UIElement that is associated with this is understood by the end user as interactive. Optionally, the user might understand the UIElement as contributing to the logical structure of the control in the GUI. This method is called by .

C#
protected override bool IsControlElementCore()
Returns:

bool

True if the element is interactive; otherwise, false.

IToggleProvider implementation.

C#
public void Toggle()