Method AddShowListMenuItem
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
IEventAggregatorThe 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.