Method AddMenuElement
AddMenuElement(IMenuModelElement)
Adds a menu model element to the collection.
public IMenuModelElement AddMenuElement(IMenuModelElement menuModelElement)
Parameters
menuModelElementIMenuModelElement
Returns
- IMenuModelElement
 The added menu model element.
AddMenuElement<View>(IMenuModelElement)
Adds a menu model element with the specified view to the collection.
public IMenuModelElement AddMenuElement<View>(IMenuModelElement menuModelElement) where View : FrameworkElement
Parameters
menuModelElementIMenuModelElement
Returns
- IMenuModelElement
 The added menu model element.
Type Parameters
ViewThe type of the view.
AddMenuElement<View, ViewModelType>(IMenuModelElement)
Adds a menu model element with the specified view and view model type to the collection.
public IMenuModelElement AddMenuElement<View, ViewModelType>(IMenuModelElement menuModelElement) where View : FrameworkElement where ViewModelType : class
Parameters
menuModelElementIMenuModelElement
Returns
- IMenuModelElement
 The added menu model element.
Type Parameters
ViewThe type of the view.
ViewModelTypeThe type of the view model.
AddMenuElement<MenuElement, View>()
Adds a menu model element with the specified menu element type and view to the collection.
public 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.
public 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.