'Declaration Public Enum TabLayoutStyle Inherits System.Enum
public enum TabLayoutStyle : System.Enum
Member | Description |
---|---|
MultiRowAutoSize | The items are sized based on their content and arranged in multiple rows. |
MultiRowSizeToFit | The items are sized based on their content and then increased in size if there is more room to display the items than required. The items are arranged in multiple rows. |
SingleRowAutoSize | The items are sized based on their content and arranged in a single row. |
SingleRowJustified | The items are sized based on their content size and then reduced towards their minimum size if there is not enough room to fit the items. The items are arranged within a single row. |
SingleRowSizeToFit | The items are sized based on their content size and then increased in size if there is more room to display the items than required. The items are arranged within a single row. |
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