Skip to main content
All docs
V24.2
.NET 8.0+
  • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ISplitLayoutSizeService Interface

In This Article

Allows you to set the relative size of the List View in split layout.

Namespace: DevExpress.ExpressApp.Blazor.Services

Assembly: DevExpress.ExpressApp.Blazor.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Blazor

#Declaration

public interface ISplitLayoutSizeService

#Remarks

Use ISplitLayoutSizeService to set the relative size for a List View when IModelListView.MasterDetailMode is ListViewAndDetailView. This is useful when you need to need to customize a specific split view at runtime. Note that the relative size has a lower priority than the fixed size specified by IModelSplitLayout.SplitterPosition.

The following code sample demonstrates how to set the size of all List Views to 40% of the parent container. The detail view occupies the remaining 60%.

C#
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Blazor;
using DevExpress.ExpressApp.Blazor.Services;

public class DefaultRelativeSizeController : ViewController<ListView> {
    ISplitLayoutSizeService SplitLayoutSizeService =>
        ((BlazorApplication)Application).ServiceProvider.GetRequiredService<ISplitLayoutSizeService>();
    protected override void OnActivated() {
        base.OnActivated();
        SplitLayoutSizeService[View.Id] = 40;
    }
}

Relative size

Tip

To resize List and Detail View panes in split layout at runtime, drag the splitter between them.

See Also