Method AddMenuItem
AddMenuItem(MenuItemViewModel)
Adds a menu item to the Outlook Bar menu.
IOutlookBarMenuBuilder AddMenuItem(MenuItemViewModel menuItemViewModel)
Parameters
menuItemViewModel
MenuItemViewModelThe view model of the menu item.
Returns
- IOutlookBarMenuBuilder
The updated instance of the IOutlookBarMenuBuilder.
AddMenuItem(MenuItemViewModel, Action<IOutlookBarMenuBuilder>)
Adds a menu item to the Outlook Bar menu with an action.
IOutlookBarMenuBuilder AddMenuItem(MenuItemViewModel menuItemViewModel, Action<IOutlookBarMenuBuilder> action)
Parameters
menuItemViewModel
MenuItemViewModelThe view model of the menu item.
action
Action<IOutlookBarMenuBuilder>The action to be performed on the IOutlookBarMenuBuilder.
Returns
- IOutlookBarMenuBuilder
The updated instance of the IOutlookBarMenuBuilder.
AddMenuItem<TMenu>(Action<TMenu>)
Adds a menu item of type TMenu
to the Outlook Bar menu.
IOutlookBarMenuBuilder AddMenuItem<TMenu>(Action<TMenu> action = null) where TMenu : MenuItemViewModel
Parameters
action
Action<TMenu>The action to be performed on the menu item.
Returns
- IOutlookBarMenuBuilder
The updated instance of the IOutlookBarMenuBuilder.
Type Parameters
TMenu
The type of the menu item.