Skip to main content

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.

public class RibbonBarMenuItemEventArgs : MenuItemEventArgs

Item is the button that owns the menu and MenuItem is the menu item that was clicked.

Constructors​

Instance member RibbonBarMenuItemEventArgs(item, menuItem)​

Initializes a new instance of RibbonBarMenuItemEventArgs using the specified parameters.

NameTypeDescription
itemRibbonBarItemButtonThe RibbonBarItemButton that originated the event.
menuItemMenuItemThe MenuItem that was clicked or tapped.

Throws:

Properties​

Instance member 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​

NameDescription
RibbonBarMenuItemEventHandlerRepresents a method that will handle events related to RibbonBarItem components.