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.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Blazor
Declaration
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;
}
}
Tip
To resize List and Detail View panes in split layout at runtime, drag the splitter between them.