ClassRadContextMenu
Represents the Silverlight RadContextMenu wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Xaml
Assembly:Telerik.WebAii.Controls.Xaml.dll
Syntax:
public class RadContextMenu : RadMenuBase, IAutomationPeer, IPeerConverter, IRadContextMenu, IRadMenuBase, IControl, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlItemsControlRadMenuBaseRadContextMenu
Implements:
Inherited Members
Constructors
RadContextMenu()
Initializes a new instance of the RadContextMenu class.
Declaration
public RadContextMenu()
Properties
EventName
Gets or sets the name of the event that will open the context menu.
Declaration
public string EventName { get; set; }
Property Value
Implements
HorizontalOffset
Get or sets the horizontal distance between the target origin and the popup alignment point.
Declaration
public double HorizontalOffset { get; set; }
Property Value
Implements
IsOpen
Gets or sets a value that indicates whether the RadContextMenu is visible.
ItemElements
Gets the collection of all the root RadMenuItem elements.
Declaration
public IList<IRadMenuItem> ItemElements { get; }
Property Value
Implements
Items
Gets the collection of all the root RadMenuItem elements.
Declaration
[Obsolete("The property is deprecated. Please use .ItemElements instead.")]
public IList<RadMenuItem> Items { get; }
Property Value
MousePosition
Gets the position of the mouse at the moment when the menu was opened.
StaysOpen
Gets or sets a value that indicates whether the RadContextMenu should close automatically.
VerticalOffset
Get or sets the vertical distance between the target origin and the popup alignment point.
Declaration
public double VerticalOffset { get; set; }
Property Value
Implements
XMousePosition
Gets the X position of the mouse at the moment when the menu was opened.
YMousePosition
Gets the Y position of the mouse at the moment when the menu was opened.
Methods
AssignReference(AutomationReference)
Assign the reference and perform your custom class initialization.
Declaration
public override void AssignReference(AutomationReference reference)
Parameters
reference
Overrides
Implements
Select(int)
Selects an option from the context menu.
Declaration
public void Select(int itemIndex)
Parameters
itemIndex
The index of the item to be selected.