Table of Contents

Method AddMenuElement

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

AddMenuElement(IMenuModelElement)

Adds a menu model element to the collection.

IMenuModelElement AddMenuElement(IMenuModelElement menuElementDefinition)

Parameters

menuElementDefinition IMenuModelElement

The menu model element to add.

Returns

IMenuModelElement

The added menu model element.

AddMenuElement<View>(IMenuModelElement)

Adds a menu model element with the specified view to the collection.

IMenuModelElement AddMenuElement<View>(IMenuModelElement menuElementDefinition) where View : FrameworkElement

Parameters

menuElementDefinition IMenuModelElement

The menu model element to add.

Returns

IMenuModelElement

The added menu model element.

Type Parameters

View

The type of the view.

AddMenuElement<MenuElement, View>()

Adds a menu model element with the specified menu element type and view to the collection.

IMenuModelElement AddMenuElement<MenuElement, View>() where MenuElement : IMenuModelElement where View : FrameworkElement

Returns

IMenuModelElement

The added menu model element.

Type Parameters

MenuElement

The type of the menu element.

View

The type of the view.

AddMenuElement<MenuElement, View, ViewModelType>()

Adds a menu model element with the specified menu element type, view, and view model type to the collection.

IMenuModelElement AddMenuElement<MenuElement, View, ViewModelType>() where MenuElement : IMenuModelElement where View : FrameworkElement where ViewModelType : class

Returns

IMenuModelElement

The added menu model element.

Type Parameters

MenuElement

The type of the menu element.

View

The type of the view.

ViewModelType

The type of the view model.

AddMenuElement<View, ViewModelType>(IMenuModelElement)

Adds a menu model element with the specified view and view model type to the collection.

IMenuModelElement AddMenuElement<View, ViewModelType>(IMenuModelElement menuElementDefinition) where View : FrameworkElement where ViewModelType : class

Parameters

menuElementDefinition IMenuModelElement

The menu model element to add.

Returns

IMenuModelElement

The added menu model element.

Type Parameters

View

The type of the view.

ViewModelType

The type of the view model.