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

DxStackLayout.ItemContainerCssClass Property

Assigns a CSS class to the component’s inner container with items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public string ItemContainerCssClass { get; set; }

#Property Value

Type Default Description
String null

CSS class names delimited by spaces.

#Remarks

The DxStackLayout component renders nested container elements. The top-level container includes the container that arranges items (the item container).

The ItemContainerCssClass property allows you to apply CSS rules to the item container. For example, you can change the gap between elements. You can also apply the nth-child selector to customize a specific layout item.

To specify style settings of the top-level container, use the DxComponentBase.CssClass property.

For more information on how to apply CSS classes to DevExpress Blazor components, refer to the following help topic: CSS Classes.

See Also