Skip to main content

DXMenuItem Members

A regular menu item.

Constructors

Name Description
DXMenuItem() Initializes a new instance of the DXMenuItem class with default settings.
DXMenuItem(String, DXMenuItemPriority) Initializes a new instance of the DXMenuItem class with the specified caption and display priority.
DXMenuItem(String, EventHandler, DXMenuItemPriority) Initializes a new instance of the DXMenuItem class with the specified caption, display priority and Click event handler.
DXMenuItem(String, EventHandler, SvgImage, DXMenuItemPriority) Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image, Image, Image, Image, DXMenuItemPriority) Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image, Image, Image, Image) Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image, Image) Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image) Initializes a new instance of the DXMenuItem class with the specified caption, image and Click event handler
DXMenuItem(String, EventHandler) Initializes a new instance of the DXMenuItem class with the specified caption and Click event handler
DXMenuItem(String) Initializes a new instance of the DXMenuItem class with the specified caption.

Properties

Name Description
AllowGlyphSkinning Gets or sets whether the current DXMenuItem icon should be painted in the DXMenuItem‘s foreground color.
Appearance Provides access to the appearance settings used to paint the DXMenuItem in the normal state.
AppearanceDisabled Provides access to the appearance settings used to paint the DXMenuItem in the disbled state.
AppearanceHovered Provides access to the appearance settings used to paint the DXMenuItem in the hovered state.
BeginGroup Gets or sets whether the current menu item starts a group.
Caption Specifies the text displayed within the menu item.
CloseMenuOnClick This member supports the internal infrastructure and is not intended to be used directly from your code.
CloseOwnerMenuOnlyOnClick This member supports the internal infrastructure and is not intended to be used directly from your code.
Collection Gets the menu item collection which owns the current menu item.
Command Gets or sets the ICommand whose Execute(Object) method will be called when the Click event is invoked.
CommandParameter Gets or sets the parameter that is passed to the command specified by the Command property.
Enabled Gets or sets whether the menu item is enabled.
HasImage Returns whether or not this DXMenuItem has an image assigned.
Image Gets or sets an image displayed within the menu item,
ImageDisabled Gets or sets an image representing the menu item in the disabled state.
ImageOptions Provides access to settings that allow you to set up raster and vector icons for this DXMenuItem.
IsRightToLeft Gets or sets whether the menu item is aligned to support locales using right-to-left fonts.
LargeImage Gets or sets a large image for the current menu item.
LargeImageDisabled Gets or sets a large image displayed in the current menu item when it is in the disabled state.
Owner Gets or sets the object that owns this DXMenuItem.
Priority Gets or sets the display priority for the current item in a RadialMenu.
Shortcut Gets or sets a shortcut displayed within the menu item
ShowHotKeyPrefix Obsolete. Gets or sets whether the ampersand (‘&’) character, when it is found in the item’s DXMenuItem.Caption, acts as a shortcut prefix, or it is displayed as is.
SuperTip Gets or sets a super tip for this DXMenuItem.
SvgImage Gets or sets the vector image that is this DXMenuItem icon.
Tag Gets or sets the data associated with the menu item.
Visible Gets or sets whether the menu item is visible.

Methods

Name Description
BindCommand(Expression<Action>, Object, Func<Object>) Uses the command selector to find an appropriate parameterized command in the source and bind it to this DXMenuItem.
BindCommand(Object, Func<Object>) Binds the specific parameterized command to this DXMenuItem.
BindCommand<T>(Expression<Action<T>>, Object, Func<T>) Uses the command selector to find an appropriate parameterized command of the target type in the source and bind it to this DXMenuItem.
Dispose() Releases all the resources used by the current object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GenerateClickEvent() Invokes the event handler assigned to the DXMenuItem.Click event.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetImage(ISvgPaletteProvider) Returns the actual raster image displayed by this DXMenuItem.
GetImageSize() Returns the size of the image displayed by this DXMenuItem.
GetIsRightToLeft() Returns whether the current menu item is actually aligned to support locales using right-to-left fonts.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
Click Occurs when the menu item’s functionality needs to be invoked.
CommandCanExecuteChanged Occurs when the CanExecute(Object) status of the Command has changed.
CommandChanged Occurs after the value of the Command property has changed.
CommandParameterChanged Occurs after the value of the CommandParameter property has changed.
See Also