Version

Enable Multiple Tab Rows

When you add tabs to xamTabControl™, the default layout behavior creates a single row of tabs. In addition, xamTabControl automatically resizes the width of each tab header to fit its content. However, you can modify this behavior by setting xamTabControl’s TabLayoutStyle property to a TabLayoutStyle enumeration value.

The following example code demonstrates how to modify tab layouts.

xamTabControl Enable Multiple Tab Rows 01.png

In XAML:

<igWindows:XamTabControl Name="xamTabControl1" TabLayoutStyle="MultiRowAutoSize">
    <!--TODO: Add tabs here-->
</igWindows:XamTabControl>

In Visual Basic:

Imports Infragistics.Windows.Controls
...
Me.xamTabControl1.TabLayoutStyle = TabLayoutStyle.MultiRowAutoSize
...

In C#:

using Infragistics.Windows.Controls;
...
this.xamTabControl1.TabLayoutStyle = TabLayoutStyle.MultiRowAutoSize;
...