Skip to main content
All docs
V24.2

DxColorPalette.TileCssClass Property

Assigns a CSS class to the Color Palette’s tiles.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(null)]
[Parameter]
public string TileCssClass { get; set; }

Property Value

Type Default Description
String null

CSS class names delimited by spaces.

Remarks

Use the TileCssClass property to customize tile appearance.

<style>
    .custom-tile-class, .custom-tile-class > div {
        border-radius: 50% !important;
    }
</style>

<DxColorPalette @bind-Value="@Value" 
                TileCssClass="custom-tile-class" />

@code {
    string Value { get; set; } = "#5BCA35";
}

Palette - Tile Customization

Run Demo: Color Palette - Tile Customization

See Also