RibbonBarMenuItemEventArgs
Namespace: Wisej.Web.Ext.RibbonBar
Assembly: Wisej.Web.Ext.RibbonBar (4.1.0.0)
Contains the data for the events in a RibbonBar control fired by its RibbonBarItemButton components with drop down menu items.
- C#
- VB.NET
public class RibbonBarMenuItemEventArgs : MenuItemEventArgs
Public Class RibbonBarMenuItemEventArgs
Inherits MenuItemEventArgs
Item is the button that owns the menu and MenuItem is the menu item that was clicked.
Constructors
RibbonBarMenuItemEventArgs(item, menuItem)
Initializes a new instance of RibbonBarMenuItemEventArgs using the specified parameters.
| Name | Type | Description |
|---|---|---|
| item | RibbonBarItemButton | The RibbonBarItemButton that originated the event. |
| menuItem | MenuItem | The MenuItem that was clicked or tapped. |
Throws:
- ArgumentNullException item or menuItem is null.
Properties
Item
RibbonBarItemButton: Returns the RibbonBarItemButton that originated the event.
Value: A reference to the RibbonBarItemButton (or RibbonBarItemSplitButton) that originated this event.
Example:
Handling the menu items of all the ribbon buttons in one place:
private void ribbonBar1_MenuButtonItemClick(object sender, RibbonBarMenuItemEventArgs e)
{
AlertBox.Show(e.Item.Text + " > " + e.MenuItem.Text);
}
Used By
| Name | Description |
|---|---|
| RibbonBarMenuItemEventHandler | Represents a method that will handle events related to RibbonBarItem components. |