Skip to main content

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

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

C#
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