Version

Apply Tab Styles

The WinTab™ and WinTabStrip™ control provides a series of different styles that you can apply to the tabs. Styles determine such attributes as tab shape, color and visibility of borders, how tabs change appearance when selection changes, and so on.

There are 13 different tab styles available, as indicated in the following screen shots:

ultratabcontrol in property page style with no theming
ultratabcontrol in property page style with theming

Property Page

Property Page (themed)

ultratabcontrol in property page selected style no theming
ultratabcontrol in property page selected style with theming

Property Page Selected

Property Page Selected (themed)

ultratabcontrol in property page flat style no theming
ultratabcontrol in property page flat style with theming

Property Page Flat

Property Page 2003

ultratabcontrol in state buttons style
ultratabcontrol in visual studio style

State Buttons

Visual Studio

ultratabcontrol flat style
ultratabcontrol excel style

Flat

Excel

ultratabcontrol note page style
ultratabcontrol note page flat style

Note Page

Note Page Flat

ultratabcontrol wizard (no UI) style
ultratabcontrol visual studio 2005 style

Wizard (no UI)

Visual Studio 2005

ultratabcontrol office 2007 ribbon

Office 2007 Ribbon

Which style you choose will depend on the overall look of your application. Once you have selected a style, you can apply it either at design-time or run-time.

To apply a Style at Design-Time

  1. With an UltraWinTab control in place on your form, click on the control to select it. Then display the Visual Studio Property window for the control.

Note
Note

A large part of the element’s active area is taken up by the UltraTabSharedControlsPage sub-control, which appears as its own control in the Visual Studio property sheet. Make sure that you have in fact selected the Tab element itself. You can do this by clicking in the tab header area of the element. The property sheet should say "UltraTabControl1" or whatever the name of the element is on your form. If you see "UltraTabSharedControlsPage1" (or something similar) in the property sheet drop-down, the Tab element is not selected.

  1. Select the Style property from the Property window. The drop-down for this property lists all the available styles. Choose the style you wish to apply.

To apply a style at run-time

Use the following code, substituting the actual name of the style you want to apply:

In Visual Basic:

Imports Infragistics.Win.UltraWinTabControl
...
Private Sub Apply_Tab_Styles_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraTabControl1.Style = UltraTabControlStyle.VisualStudio2005
End Sub

In C#:

using Infragistics.Win.UltraWinTabControl;
...
private void Apply_Tab_Styles_Load(object sender, System.EventArgs e)
{
	this.ultraTabControl1.Style = UltraTabControlStyle.VisualStudio2005;
}
example of ultratabcontrol with visual Studio 2005 style applied