Method AddMenuElement
AddMenuElement(IMenuModelElement)
Adds a menu model element to the collection.
IMenuModelElement AddMenuElement(IMenuModelElement menuElementDefinition)
Parameters
menuElementDefinitionIMenuModelElementThe 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
menuElementDefinitionIMenuModelElementThe menu model element to add.
Returns
- IMenuModelElement
The added menu model element.
Type Parameters
ViewThe 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
MenuElementThe type of the menu element.
ViewThe 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
MenuElementThe type of the menu element.
ViewThe type of the view.
ViewModelTypeThe 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
menuElementDefinitionIMenuModelElementThe menu model element to add.
Returns
- IMenuModelElement
The added menu model element.
Type Parameters
ViewThe type of the view.
ViewModelTypeThe type of the view model.