Table of Contents

Method AddShowListMenuItem

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

AddShowListMenuItem<T>(ICollection<MenuItemViewModel>, IEventAggregator)

Adds a new menu item to the collection that shows a list.

public static MenuItemViewModel AddShowListMenuItem<T>(this ICollection<MenuItemViewModel> items, IEventAggregator eventAggregator) where T : class

Parameters

items ICollection<MenuItemViewModel>

The collection of menu items.

eventAggregator IEventAggregator

The event aggregator used to publish the list show event.

Returns

MenuItemViewModel

The newly added MenuItemViewModel.

Type Parameters

T

The type of the list to be shown.