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