Table of Contents

Method AddMenuElement

Namespace
Innova.Prism.Library.Services
Assembly
Innova.Prism.Library.dll

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 IMenuService

The menu service.

GroupName string

The 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 IMenuService

The menu service.

GroupName string

The 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.