WebSlidingMenu allows user to customize content mode from server-side.
This topic will show you how to perform the above scenario.
To customize WebSlidingMenuItem content mode from server-side
- Drag WebSlidingMenu control from toolbox.
- Place the following code in server-side:
WebSlidingMenuItem itm = new WebSlidingMenuItem();
itm.Name = "itm1";
itm.ContentMode = WebSlidingMenuContentMode.Text;
itm.Text = "Item1";
WebSlidingMenu1.Items.Add(itm);
|
- Run the project.