Skip to main content

PaletteColors Property

Gets or sets the collection of individual colors in the palette.

Definition

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

public IEnumerable<Color>? PaletteColors { get; set; }

Property Value

IEnumerable(Color)

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