ComponentOne Accordion for ASP.NET AJAX: Accordion for ASP.NET AJAX Task-Based Help > Using Built-in Visual Styles

Using Built-in Visual Styles

You can format C1Accordion with one of five built-in visual styles. Note that you can also use your own style; see Adding Custom Visual Styles for more information.

Changing the Visual Style Using the Smart Tag

You can change the style of C1Accordion at design time using the C1Accordion Tasks menu.

1.   Click the C1Accordion smart tag to open the C1Accordion Tasks menu.

2.   Click drop-down arrow next to VisualStyle.

3.   Select one of the built-in styles listed. The style is applied to the C1Accordion control.

Changing the Visual Style Programmatically

To change the style of C1Accordion programmatically, use the following code. In this example, "Vista" is used, but you can replace it with any of the built-in styles (ArcticFox, Office2007Black, Office2007Blue, Office2007Silver, or Vista) or use your own style.

      Visual Basic

C1Accordion1.VisualStyle = "Vista"

      C#

C1Accordion1.VisualStyle = "Vista";


Send comments about this topic to ComponentOne.
Copyright ©ComponentOne LLC. All rights reserved.