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
menuService
IMenuServiceThe menu service.
GroupName
stringThe name of the group where the menu element will be added.
Returns
- IMenuModelElement
The newly added menu element.
Type Parameters
View
The 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
menuService
IMenuServiceThe menu service.
GroupName
stringThe name of the group where the menu element will be added.
Returns
- IMenuModelElement
The newly added menu element.
Type Parameters
View
The type of the view associated with the menu element.
ViewModel
The type of the view model associated with the menu element.