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

Using Built-in Visual Styles

You can format C1NavPanel 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 C1NavPanel at design time using the C1NavPanel Tasks menu.

1.   Click the C1NavPanel smart tag to open the C1NavPanel 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 C1NavPanel control.

Changing the Visual Style Programmatically

To change the style of C1NavPanel 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

C1NavPanel1.VisualStyle = "Vista"

      C#

C1NavPanel1.VisualStyle = "Vista";


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