Table of Contents

Method AddMenuItem

Namespace
Innova.Prism.Library.Controls.Menu
Assembly
Innova.Prism.Library.dll

AddMenuItem(MenuItemViewModel)

Adds a menu item to the Outlook Bar menu.

IOutlookBarMenuBuilder AddMenuItem(MenuItemViewModel menuItemViewModel)

Parameters

menuItemViewModel MenuItemViewModel

The 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 MenuItemViewModel

The 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.