Intersoft Support Center

Customize MenuItem's Content Mode from Server-side

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

  1. Drag WebSlidingMenu control from toolbox.
  2. Place the following code in server-side:
    C# Copy Code
    WebSlidingMenuItem itm = new WebSlidingMenuItem();
    itm.Name = "itm1";
    itm.ContentMode = WebSlidingMenuContentMode.Text;
    itm.Text = "Item1";
    
    WebSlidingMenu1.Items.Add(itm);
    

  3. Run the project.
Previous Next