Skip to main content

PaletteColumnCount Property

Gets or sets the number of colors in each row (section) of the color palette. Within a standard palette, rows are shades and columns are colors.

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)

public int PaletteColumnCount { get; set; }

Property Value​

Int32

Remarks​

This is not commonly set manually. Instead, it should be set automatically by providing an IColorPalette to the Palette property.

Also note that this property is what should be bound in the control template. Palette is too high-level to use on its own.

See Also​

Reference​

ColorView Class
Avalonia.Controls Namespace