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
itemsICollection<MenuItemViewModel>The collection of menu items.
eventAggregatorIEventAggregatorThe event aggregator used to publish the list show event.
Returns
- MenuItemViewModel
The newly added MenuItemViewModel.
Type Parameters
TThe type of the list to be shown.