Skip to main content

CompatibilitySettings.AddSpaceAroundFormLayoutContent Property

Specifies whether the Form Layout adds a space around its content.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public static bool AddSpaceAroundFormLayoutContent { get; set; }

Property Value

Type Description
Boolean

true to add a space to the Form Layout; otherwise, false.

Remarks

In v22.2, the Form Layout component uses our own rendering engine to render inner items and does not add a space around content:

Form Layout without spacings

In previous versions, the Form Layout component uses the Bootstrap grid system to render inner items. The Form Layout customizes Bootstrap classes so that the content of each item has a space between it and the Form Layout border:

Form Layout with spacings

Use the AddSpaceAroundFormLayoutContent property to restore this behavior. Specify this property in the Program.cs file before you register DevExpress resources:

// ...
DevExpress.Blazor.CompatibilitySettings.AddSpaceAroundFormLayoutContent = true;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();
See Also