Method AddMenuItem
AddMenuItem(MenuItemViewModel)
Adds a menu item to the Outlook Bar menu.
IOutlookBarMenuBuilder AddMenuItem(MenuItemViewModel menuItemViewModel)
Parameters
menuItemViewModelMenuItemViewModelThe 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
menuItemViewModelMenuItemViewModelThe view model of the menu item.
actionAction<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
actionAction<TMenu>The action to be performed on the menu item.
Returns
- IOutlookBarMenuBuilder
The updated instance of the IOutlookBarMenuBuilder.
Type Parameters
TMenuThe type of the menu item.