ClassRadMenuItem
Represents the Silverlight RadMenuItem wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Xaml.Wpf
Assembly:Telerik.WebAii.Controls.Xaml.Wpf.dll
Syntax:
public class RadMenuItem : ItemsControl, IAutomationPeer, IPeerConverter, IRadMenuItem, IControl, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementControlItemsControlRadMenuItem
Implements:
Inherited Members
Constructors
RadMenuItem()
Initializes a new instance of the RadMenuItem class.
Declaration
public RadMenuItem()
Properties
BackgroundBrush
Get the item background color brush.
Declaration
public SolidColorBrush BackgroundBrush { get; }
Property Value
ForegroundBrush
Get the item foreground color brush.
Declaration
public SolidColorBrush ForegroundBrush { get; }
Property Value
HasIcon
Get whether the menu item has icon.
IsCheckable
Get or set whether the menu item can be checked.
IsChecked
Get or set whether the menu item is checked.
IsPopupOpen
Get whether the item (i.e. its popup) is opened.
IsSubmenuOpen
Gets a value that indicates whether the submenu of the RadMenuItem is open.
ItemElements
Get the list of RadMenuItem sub elements of this menu item.
Declaration
public IList<IRadMenuItem> ItemElements { get; }
Property Value
ItemIndex
Get the item index.
ItemText
Get the item text.
Declaration
[Obsolete("Use .Text instead.")]
public string ItemText { get; }
Property Value
Implements
StaysOpenOnClick
Gets or sets a value that indicates that the submenu in which this RadMenuItem is located should not close when this item is clicked.
Declaration
public bool StaysOpenOnClick { get; set; }
Property Value
Implements
Methods
AssignReference(AutomationReference)
Initialize the element.
Declaration
public override void AssignReference(AutomationReference reference)
Parameters
reference
The automation reference of the element.
Overrides
Implements
Click()
Clicks the item and refreshes the item popup item presenter to be able to get the list of sub items if needed.
Declaration
public void Click()
Implements
HoverOver()
Hovers over the item and refreshes the item popup item presenter to be able to get the list of sub items if needed.
Declaration
public void HoverOver()
SubitemClick(int)
Simulates user clicking a sub item. Holds the control update internally.
Declaration
public void SubitemClick(int itemIndex)
Parameters
itemIndex
The index of the clicked sub item.