Version

Creating a StyleSet

A single Style Library can contain multiple StyleSets that apply to any number of Infragistics controls. You can create a StyleSet for only WinGrid or you can create one that applies to both WinGrid and WinTree. You can also base a StyleSet on a previously created StyleSet. When basing a StyleSet on another one, a control will use the "Based On" Style Set for all its settings unless a setting is specifically overridden in the derived StyleSet. The following procedure will create a simple StyleSet and add it to the Style Library.

To create a new StyleSet:

  1. Click Add New in the toolbar at the top of the Style Explorer.

Shows the location of the Add button that is used to add a new StyleSet.

Depending on your AppStylist for Windows Forms Options, you may be prompted to turn turn off System Themes. If you want to create your own styles, click Yes, Turn Off. If you always want System Themes turned off, select the Remember This Action check box.

The New StyleSet Option dialog box that asks if you want to turn off System Themes.
  1. Click Yes, Turn Off. The StyleSet Manager Dialog Box appears.

The StyleSet Manager dialog box.
  1. Change the StyleSet Name of the StyleSet to something more descriptive such as 'Corporate Blue Style'. If you would like for the StyleSet to apply only to a specific control/component, see Styling a Specific Component Type for more information.

  2. Click OK to add the StyleSet to the Style Library.

The 'Corporate Blue Style' StyleSet now appears in the Active StyleSet drop-down list.

Shows how to change the Active StyleSet in teh Style Explorer.