DxColorPalette.ColumnCount Property
Specifies the number of columns in the Color Palette.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(10)]
[Parameter]
public int ColumnCount { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | 10 | The number of columns. |
Remarks
Use the ColumnCount
property to specify the number of columns in the palette.
<DxColorPalette @bind-Value="@Value"
ColumnCount="5">
<Groups>
<DxColorPaletteGroup Header="Warm"
Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Warm)" />
<DxColorPaletteGroup Header="Cold"
Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Cold)" />
</Groups>
</DxColorPalette>
@code {
string Value { get; set; }
}
See Also