In This Topic
The C1MenuExtender control supports using custom icons in the menu. You will use special markup to apply the icons to the C1MenuExtender control.
- Create an ASP.NET Web application.
- Add a standard Panel control to the main content of your page.
- Add the following markup within the <asp:Panel> tags to create a list that will become the menu.
<ul id="menu">
<li><a>menuitem1</a>
<ul>
<li><a>menuitem1a</a></li>
<li><a>menuitem2a</a></li>
</ul>
</li>
<li><a>menuitem2</a></li>
<li><a>menuitem3</a></li>
- Click the Panel smart tag and select Add Extender from the Tasks menu.
- In the Extender Wizard, select C1MenuExtender and click OK. A C1MenuExtender control is added to the page and the TargetControlID is set to Panel1.
- Select View | Properties Window in the Visual Studio menu.
- Click the drop-down list at the top of the Properties window and select Panel1_C1MenuExtender.
- Expand the Animation node.
- Set the Animation.Duration property to 800.
- Expand the Animated node and set Effect to bounce.
- Press F5 to run the application. Click menuitem1 and notice the submenu bounces as it appears.