Method AddMenuElement
AddMenuElement<View>(IMenuService, string)
Adds a new menu element to the menu service.
public static IMenuModelElement AddMenuElement<View>(this IMenuService menuService, string GroupName) where View : FrameworkElement
Parameters
menuServiceIMenuServiceThe menu service.
GroupNamestringThe name of the group where the menu element will be added.
Returns
- IMenuModelElement
 The newly added menu element.
Type Parameters
ViewThe type of the view associated with the menu element.
AddMenuElement<View, ViewModel>(IMenuService, string)
Adds a new menu element to the menu service.
public static IMenuModelElement AddMenuElement<View, ViewModel>(this IMenuService menuService, string GroupName) where View : FrameworkElement where ViewModel : class
Parameters
menuServiceIMenuServiceThe menu service.
GroupNamestringThe name of the group where the menu element will be added.
Returns
- IMenuModelElement
 The newly added menu element.
Type Parameters
ViewThe type of the view associated with the menu element.
ViewModelThe type of the view model associated with the menu element.