ComponentOne Menu for ASP.NET AJAX: Menu Appearance > Visual Styles

Visual Styles

You can create your own custom theme or choose from one of the five built-in themes: ArcticFox, Vista, Office2007Black, Office2007Blue, and Office2007Silver. The names of the themes are recognized by a logical/readable visual style name. Each theme includes one .css file and a set of images used by the CSS classes, for example, arrows, icons, buttons, etc. The theme name can be set by applying the appropriate theme name to the VisualStyle property. When creating your own theme it’s recommended to use one of the five existing styles and modify that. To see how to create a custom theme by modifying an existing theme see, Creating a Custom Visual Style.

Note: Additional styles are installed with the product, but they must be added as custom visual styles at this time. These styles include: BureauBlack, Evergreen, ExpressionDark, RanierOrange, RanierPurple, ShinyBlue, and Windows7. See Creating a Custom Visual Style for more information.

The themes can be defined as a resource theme or a file theme. The theme with the .CSS file in resource is named Resource Theme. The theme with CSS in external file is named File Theme. All external file themes are installed in C:\Program Files\ComponentOne\Studio for ASP.NET\C1WebUI\VisualStyles.

Custom external themes can be created using an existing theme and modifying its styles and images in the appropriate .css file. The default location path for creating custom external themes is \VisualStyles\CustomThemeName\C1Menu.

C1Menu includes a listbox of available visual styles in the C1Menu Tasks menu to quickly change C1Menu’s theme. The C1Menu Tasks menu enables you to choose from one of the five themes to apply to the C1Menu control. The visual styles can also be applied to the C1Menu control by setting its VisualStyle property in the Properties window.

Accessing the Visual Styles at design time

The visual styles are accessible in one of two ways at design time:

      Select Visual Styles drop-down listbox from C1Menu Tasks menu.

      Select Visual Styles drop-down listbox from C1Menu’s Properties Window.

Available Visual Styles

The following visual styles are available for C1Menu:

 

Visual Style

Preview

ArcticFox

Office2007Black

Office2007Blue

Office2007Silver

Vista

VistaBlack


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