Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Templates

  • SubMenu Template
    v
  • Item Template
    v


This sample demonstrates the use of templates within the DevExpress MVC Menu.

A submenu template and an item template are used. These templates are assigned by using the SetSubMenuTemplateContent and SetTemplateContent methods of the Menu's item objects, respectively They contain a parameter that represents the MenuItemTemplateContainer object providing settings for a templated item.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxNavigationAndLayoutDemos