The property can only be set to a positive integer. It defaults to 3.
Note: This property is ignored if the TabLayoutStyle property is not set to one of the 'Multi...' layouts.
Imports Infragistics.Windows.Controls Class Window1 Public Sub New() ' This call is required by the Windows Form Designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. ' tabs will be displayed on multiple rows and sized so fit each row Me.XamTabControl1.TabLayoutStyle = TabLayoutStyle.MultiRowSizeToFit ' the maximum visible tab rows is set to 4. If the tab control is sized ' so there are more than 4 rows then scroll buttons will be displayed Me.XamTabControl1.MaximumTabRows = 4 ' Specify the maximum # of device independent units that can be added ' to each tab item we adjusting to fit the size of the XamTabControl. ' Setting this limit prevents the tabs from being resized too large. Me.XamTabControl1.MaximumSizeToFitAdjustment = 50 ' specify the spacing between each tab Me.XamTabControl1.InterTabSpacing = 2 ' specify the spacing between each tab row Me.XamTabControl1.InterRowSpacing = 2 ' specify the minimum extent to each tab Me.xamTabControl1.MinimumTabExtent = 150 End Sub End Class
using Infragistics.Windows.Controls; public partial class Window1 : Window { public Window1() { InitializeComponent(); // tabs will be displayed on multiple rows and sized so fit each row this.xamTabControl1.TabLayoutStyle = TabLayoutStyle.MultiRowSizeToFit; // the maximum visible tab rows is set to 4. If the tab control is sized // so there are more than 4 rows then scroll buttons will be displayed this.xamTabControl1.MaximumTabRows = 4; // Specify the maximum # of device independent units that can be added // to each tab item we adjusting to fit the size of the XamTabControl. // Setting this limit prevents the tabs from being resized too large. this.xamTabControl1.MaximumSizeToFitAdjustment = 50; // specify the spacing between each tab this.xamTabControl1.InterTabSpacing = 2; // specify the spacing between each tab row this.xamTabControl1.InterRowSpacing = 2; // specify the minimum extent to each tab this.xamTabControl1.MinimumTabExtent = 150; } }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2