プロパティに設定できる値は、正の整数のみです。デフォルトは 3 です。
注: このプロパティは、TabLayoutStyle プロパティが 'Multi...' レイアウトに設定されていない場合は無視されます。
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; } }