Click or drag to resize
RadMenuItem Class
Represents a selectable item inside a RadMenu or RadContextMenu.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsItemsControl
                System.Windows.ControlsHeaderedItemsControl
                  Telerik.Windows.ControlsRadMenuItem
                    Telerik.Windows.ControlsRadMenuGroupItem
                    Telerik.Windows.ControlsRadMenuSeparatorItem
                    Telerik.Windows.Controls.Spreadsheet.ControlsSeparatorMenuItem
                    Telerik.Windows.Controls.TabControlDropDownMenuItem

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation (in Telerik.Windows.Controls.Navigation.dll) Version: 2017.3.913.40 (2017.3.913.40)
Syntax
public class RadMenuItem : HeaderedItemsControl, 
	ICommandSource

The RadMenuItem type exposes the following members.

Constructors
  NameDescription
Public methodRadMenuItem
Initializes a new instance of the RadMenuItem class without menu text or a value.
Top
Methods
  NameDescription
Protected methodChangeVisualState
Updates the visual state of the control.
Protected methodClearContainerForItemOverride
Clear the Menu property.
(Overrides ItemsControlClearContainerForItemOverride(DependencyObject, Object).)
Protected methodGetContainerForItemOverride
Creates or identifies the element that is used to display the given item.
(Overrides ItemsControlGetContainerForItemOverride.)
Protected methodIsItemItsOwnContainerOverride
Determines if the specified item is RadMenuItem.
(Overrides ItemsControlIsItemItsOwnContainerOverride(Object).)
Protected methodIsItemItsOwnContainerProtected
Determines if the specified item is RadMenuItem.
Protected methodOnAccessKey
Provides class handling for when an access key that is meaningful for this element is invoked.
(Overrides UIElementOnAccessKey(AccessKeyEventArgs).)
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
(Overrides FrameworkElementOnApplyTemplate.)
Protected methodOnChecked
Called when the IsChecked property becomes true.
Protected methodOnClick
Called when a RadMenuItem is clicked and raises a Click event.
Protected methodOnCreateAutomationPeer
Provides an appropriate RadMenuItemAutomationPeer implementation for this control, as part of the automation infrastructure.
(Overrides UIElementOnCreateAutomationPeer.)
Protected methodOnGotKeyboardFocus
Invoked when an unhandled Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class.
(Overrides UIElementOnGotKeyboardFocus(KeyboardFocusChangedEventArgs).)
Protected methodOnHeaderChanged
Called when the Header property of a HeaderedItemsControl changes.
(Overrides HeaderedItemsControlOnHeaderChanged(Object, Object).)
Protected methodOnHeaderTemplateChanged
Called when the HeaderTemplate property changes.
(Overrides HeaderedItemsControlOnHeaderTemplateChanged(DataTemplate, DataTemplate).)
Protected methodOnHeaderTemplateSelectorChanged
Called when the HeaderTemplateSelector property changes.
(Overrides HeaderedItemsControlOnHeaderTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector).)
Protected methodOnInitialized
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally.
(Overrides FrameworkElementOnInitialized(EventArgs).)
Protected methodOnIsKeyboardFocusWithinChanged
Called when the focus is no longer on or within a RadMenuItem.
(Overrides UIElementOnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs).)
Protected methodOnItemsChanged
Invoked when the Items property changes.
(Overrides ItemsControlOnItemsChanged(NotifyCollectionChangedEventArgs).)
Protected methodOnKeyDown
Raises the [E:KeyDown] event.
(Overrides ItemsControlOnKeyDown(KeyEventArgs).)
Protected methodOnMouseEnter
Raises the [E:MouseEnter] event.
(Overrides UIElementOnMouseEnter(MouseEventArgs).)
Protected methodOnMouseLeave
Raises the [E:MouseLeave] event.
(Overrides UIElementOnMouseLeave(MouseEventArgs).)
Protected methodOnMouseLeftButtonDown
Raises the [E:MouseLeftButtonDown] event.
(Overrides UIElementOnMouseLeftButtonDown(MouseButtonEventArgs).)
Protected methodOnMouseLeftButtonUp
Raises the [E:MouseLeftButtonUp] event.
(Overrides UIElementOnMouseLeftButtonUp(MouseButtonEventArgs).)
Protected methodOnMouseMove
Raises the [E:MouseMove] event.
(Overrides UIElementOnMouseMove(MouseEventArgs).)
Protected methodOnMouseRightButtonDown
Handles MouseRightButtonDown event.
(Overrides UIElementOnMouseRightButtonDown(MouseButtonEventArgs).)
Protected methodOnMouseRightButtonUp
Handles MouseRightButtonUp event.
(Overrides UIElementOnMouseRightButtonUp(MouseButtonEventArgs).)
Protected methodOnSubmenuClosed
Called when the submenu of a RadMenuItem is closed.
Protected methodOnSubmenuOpened
Called when the submenu of a RadMenuItem is opened.
Protected methodOnUnchecked
Called when the IsChecked property becomes false.
Protected methodPrepareContainerForItemOverride
Prepares the specified element to display the specified item.
(Overrides ItemsControlPrepareContainerForItemOverride(DependencyObject, Object).)
Public methodResetTheme
Resets the theme.
Top
Extension Methods
  NameDescription
Public Extension MethodChildrenOfTypeT
Gets all child elements recursively from the visual tree by given type.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodDeserializePrimitives
Deserializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodEnableLayoutRounding (Defined by LayoutRoundingHelperExtensions.)
Public Extension MethodFindChildByTypeT
Finds child element of the specified type. Uses breadth-first search.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodGetAssociatedInlineUIContainer (Defined by ExtensionMethods.)
Public Extension MethodGetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodGetBaseControlItemStatus
Gets a string that communicates the visual status of a Control.
(Defined by AutomationExtensions.)
Public Extension MethodGetBoundsRelativeTo
Gets the bounds relative to the current framework element.
(Defined by ExtensionMethods.)
Public Extension MethodGetGlobalMousePosition
(Defined by WindowHost.)
Public Extension MethodGetParents
Enumerates through element's parents in the visual tree.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodGetVisualParentT
Searches up in the visual tree for parent element of the specified type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is ancestor of the current UI element.
(Defined by ExtensionMethods.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is an ancestor of the descendant.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsKeyboardFocusWithin
Determines whether keyboard focus is within the current UI element.
(Defined by KeyboardHelper.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by DependencyObjectExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodParentOfTypeT
Gets the parent element from the visual tree by given type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodSerializePrimitives
Serializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodSetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Public Extension MethodSetLayout
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Point)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Double, Double)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSlideInOverloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideIn(TimeSpan)Overloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOutOverloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOut(TimeSpan)Overloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan)Overloaded.
Translates the target element as requested by the parameters.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan, Action)Overloaded.
Translates the target element as requested by the parameters and executes the action request.
(Defined by CalendarAnimation.)
Top
Fields
  NameDescription
Public fieldStatic memberCheckedEvent
Identifies the Checked routed event.
Public fieldStatic memberClickEvent
Identifies the Click routed event.
Public fieldStatic memberCommandParameterProperty
Identifies the CommandParameter dependency property.
Public fieldStatic memberCommandProperty
Identifies the Command dependency property.
Public fieldStatic memberCommandTargetProperty
Identifies the CommandTarget property.
Public fieldStatic memberDropDownHeightProperty
Identifies the DropDownHeight dependency property.
Public fieldStatic memberDropDownPlacementProperty
Identifies the DropDownPlacement dependency property.
Public fieldStatic memberDropDownWidthProperty
Identifies the DropDownWidth dependency property.
Public fieldStatic memberIconColumnWidthProperty
Identifies the IconColumnWidth dependency property.
Public fieldStatic memberIconProperty
Identifies the Icon dependency property.
Public fieldStatic memberIconTemplateProperty
Identifies the IconTemplate dependency property.
Public fieldStatic memberInputGestureTextProperty
Identifies the InputGestureText dependency property.
Public fieldStatic memberIsCheckableProperty
Identifies the IsCheckable dependency property.
Public fieldStatic memberIsCheckedProperty
Identifies the IsChecked dependency property.
Public fieldStatic memberIsCurrentProperty
Identifies the IsCurrent dependency property.
Public fieldStatic memberIsHighlightedProperty
Identifies the IsHighlighted dependency property.
Public fieldStatic memberIsSeparatorProperty
Identifies the IsSeparatorProperty dependency property.
Public fieldStatic memberIsSubmenuOpenProperty
Identifies the IsSubmenuOpen dependency property.
Public fieldStatic memberIsSuspendingPopupAnimationProperty
Identifies the IsSuspendingPopupAnimation readonly dependency property.
Public fieldStatic memberItemContainerTemplateSelectorProperty
Identifies the ItemContainerTemplateSelector dependency property.
Public fieldStatic memberMenuProperty
Identifies the Menu readonly dependency property.
Public fieldStatic memberRoleProperty
Identifies the Role dependency property.
Public fieldStatic memberSeparatorTemplateKeyProperty Obsolete.
Identifies the SeparatorTemplateKey dependency property.
Public fieldStatic memberStaysOpenOnClickProperty
Identifies the StaysOpenOnClick dependency property.
Public fieldStatic memberSubmenuClosedEvent
Identifies the SubmenuClosed routed event.
Public fieldStatic memberSubmenuHeaderTemplateKeyProperty Obsolete.
Identifies the SubmenuHeaderTemplateKey dependency property.
Public fieldStatic memberSubmenuItemTemplateKeyProperty Obsolete.
Identifies the SubmenuItemTemplateKey dependency property.
Public fieldStatic memberSubmenuOpenedEvent
Identifies the SubmenuOpened routed event.
Public fieldStatic memberTopLevelHeaderTemplateKeyProperty Obsolete.
Identifies the TopLevelHeaderTemplateKey dependency property.
Public fieldStatic memberTopLevelItemTemplateKeyProperty Obsolete.
Identifies the TopLevelItemTemplateKey dependency property.
Public fieldStatic memberUncheckedEvent
Identifies the Unchecked routed event.
Top
Properties
  NameDescription
Public propertyCommand
Gets the command that will be executed when the command source is invoked.
Public propertyCommandParameter
Represents a user defined data value that can be passed to the command when it is executed.
Public propertyCommandTarget
The object that the command is being executed on.
Public propertyDropDownHeight
Gets or sets the height of the drop-down area.
Public propertyDropDownPlacement
Gets or sets the placement of the drop-down area.
Public propertyDropDownWidth
Gets or sets the width of the drop-down area.
Protected propertyHandlesScrolling
Gets whether the control supports scrolling.
(Overrides ControlHandlesScrolling.)
Public propertyIcon
Gets or sets the icon that appears in a RadMenuItem. This is a dependency property.
Public propertyIconColumnWidth
Gets or sets the width of the column that contains the icon.
Public propertyIconTemplate
Gets or sets the data template used for Icon. This is a dependency property.
Public propertyInputGestureText
Gets or sets the text describing an input gesture that will call the command tied to the specified item.
Remarks
This property does not associate the input gesture with the menu item. It simply adds text to the menu item. The application must handle the user's input to carry out the action.
Public propertyIsCheckable
Gets a value that indicates whether a RadMenuItem can be checked. This is a dependency property.
Public propertyIsChecked
Gets or sets a value that indicates whether the RadMenuItem is checked. This is a dependency property.
Public propertyIsCurrent
Gets or sets whether the item is current item.
Protected propertyIsEnabledCore
True if the RadMenuItem can be selected; otherwise, false.
(Overrides UIElementIsEnabledCore.)
Public propertyIsHighlighted
Gets a value that indicates whether a RadMenuItem is highlighted. This is a dependency property.
Public propertyIsSeparator
Gets or sets a value indicating whether this instance is a separator.
Public propertyIsSubmenuOpen
Gets a value that indicates whether the submenu of the RadMenuItem is open. This is a dependency property.
Public propertyIsSuspendingPopupAnimation
Gets whether a menu suspends animations on its Popup control.
Public propertyItemContainerTemplateSelector
Gets or sets the custom logic for choosing a template used to display each item.
Public propertyMenu
Gets the RadMenu for this RadMenuItem. This is a readonly dependency property.
Public propertyRole
Gets a value that indicates the role of a RadMenuItem. This is a dependency property.
Public propertySeparatorTemplateKey Obsolete.
Gets the resource key for a style applied to a RadMenuItem when the RadMenuItem is a separator.
Public propertyStaysOpenOnClick
Gets or sets a value that indicates that the submenu in which this RadMenuItem is located should not close when this item is clicked. This is a dependency property.
Public propertySubmenuHeaderTemplateKey Obsolete.
Gets the resource key for a style applied to a RadMenuItem when the RadMenuItem is a header of a submenu.
Public propertySubmenuItemTemplateKey Obsolete.
Gets the resource key for a style applied to a RadMenuItem when the RadMenuItem is a submenu.
Public propertyTopLevelHeaderTemplateKey Obsolete.
Gets the resource key for a style applied to a RadMenuItem when the RadMenuItem is a header of a top-level menu.
Public propertyTopLevelItemTemplateKey Obsolete.
Gets the resource key for a style applied to a RadMenuItem when it is a top-level RadMenuItem.
Top
Events
  NameDescription
Public eventChecked
Occurs when a RadMenuItem is checked.
Public eventClick
Occurs when a RadMenuItem is clicked.
Public eventSubmenuClosed
Occurs when the state of the IsSubmenuOpen property changes to false.
Public eventSubmenuOpened
Occurs when the state of the IsSubmenuOpen property changes to true.
Public eventUnchecked
Occurs when a RadMenuItem is unchecked.
Top
See Also