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

ISplitLayoutSizeService Interface

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

Namespace: DevExpress.ExpressApp.Blazor.Services

Assembly: DevExpress.ExpressApp.Blazor.v23.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%.

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