Skip to main content

DxComboBox<TData, TValue>.DropDownBodyCssClass Property

Specifies the name of the CSS class applied to the drop-down body in the ComboBox.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string DropDownBodyCssClass { get; set; }

Property Value

Type Description
String

The CSS class name.

Remarks

To define the appearance of the drop-down body in the ComboBox, assign a CSS class name to the DropDownBodyCssClass property.

<style>
    .my-style {
        background-color: darkorange;
    }
</style>

<DxComboBox Data="@Cities"
            @bind-Value="@Value"
            DropDownBodyCssClass="my-style" />

@code {
    IEnumerable<string> Cities = new List<string>() {
      "London",
      "Berlin",
      "Paris",
    };

    string Value { get; set; }
}

CSS Class for DropDown Body in ComboBox

For more information, see the following help topic: CSS Classes.

See Also