Skip to main content
All docs
V24.2

DxColorPalettePresets Class

Defines the Color Palette‘s predefined sets of colors.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public static class DxColorPalettePresets

Remarks

The Color Palette component allows you to use predefined sets of colors (presets):

  • Universal
  • Universal Gradient
  • Fluent Theme
  • Fluent Theme Gradient
  • Pastel
  • Pastel Gradient
  • Warm
  • Warm Gradient
  • Cold
  • Cold Gradient
  • Standard

Palette Presets

Run Demo: Color Palette - Palette Presets

The following code adds two color groups that use the Warm and Cold presets:

<DxColorPalette @bind-Value="@Value">
    <Groups>
        <DxColorPaletteGroup Header="Warm" Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Warm)" />
        <DxColorPaletteGroup Header="Cold" Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Cold)" />
    </Groups>
</DxColorPalette>

@code {
    string Value { get; set; }
}

Palette Presets

Inheritance

Object
DxColorPalettePresets
See Also