Menu Templates
You can replace the look and feel of the view elements of the Menu extension using templates. You can create templates for various element types: the item text, the item content, and the item submenu. An element’s template can be defined at the extension level and the item level at the same time. In this case, the item-level template has priority.
The table below lists the members used to create templates.
Item level templates | Extension level templates | |
---|---|---|
Item text template | MVCxMenuItem.SetTextTemplateContent | MenuSettingsBase.SetItemTextTemplateContent |
Item template | MVCxMenuItem.SetTemplateContent | MenuSettingsBase.SetItemTemplateContent |
Submenu template | MVCxMenuItem.SetSubMenuTemplateContent | MenuSettingsBase.SetSubMenuTemplateContent |
Note
A menu template cannot contain another menu extension.
See Also