WebSlidingMenu allows user to customize header content mode from
server-side.
This topic will show you how to perform the above scenario.
To customize WebSlidingMenuItem header content mode from server-side
- Drag WebSlidingMenu control from toolbox.
-
Place the following code in server-side:
WebSlidingMenuLevel lvl = new WebSlidingMenuLevel();
lvl.Name = "Lvl1";
lvl.HeaderContentMode = WebSlidingMenuHeaderContentMode.Text;
lvl.HeaderText = "Level1";
lvl.Level = 0;
WebSlidingMenu1.Levels.Add(lvl);
|
- Run the project.