BlazorMdiShowViewStrategy.MaxTabLimit Property
Limits the number of opened tabs.
Namespace: DevExpress.ExpressApp.Blazor
Assembly: DevExpress.ExpressApp.Blazor.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Int32 | 10 | The maximum number of opened tabs. |
Remarks
You can specify the MaxTabLimit property as follows:
public static int Main(string[] args) {
BlazorMdiShowViewStrategy.MaxTabLimit = 5;
BlazorMdiShowViewStrategy.TabOverflowStrategy = TabOverflowStrategy.CloseLeastRecentTab;
// ...
When the TabOverflowStrategy property is set to UnloadLeastRecentTab or CloseLeastRecentTab, the total number of tabs can exceed the limit if the oldest tabs have unsaved changes. Such tabs are not unloaded or closed.
See Also