In This Article

MicroPalette Class

Provides a palette of colors for use in charts.

public class MicroPalette
Inheritance:
object object

Constructors

MicroPalette()

Initializes an instance of the class.

public MicroPalette()

MicroPalette(MicroPaletteKind)

Initializes an instance of the class.

public MicroPalette(MicroPaletteKind kind)
Parameter Type Description
kind MicroPaletteKind

A MicroPaletteKind that indicates the built-in palette to use.

MicroPalette(params Color[]?)

Initializes an instance of the class.

public MicroPalette(params Color[]? paletteBaseColors)
Parameter Type Description
paletteBaseColors Color[]

The palette Color values.

Properties

BaseColors

The collection of palette base Color objects used to generate the palette.

public ObservableCollection<Color> BaseColors { get; }

Property Value

ObservableCollection<Color>

ColorSelectionHint

A MicroColorSelectionHint that provides a hint on how to perform color selection for this palette.

public MicroColorSelectionHint ColorSelectionHint { get; set; }

Property Value

MicroColorSelectionHint:

The default value is UniformDistribution.

Colors

The read-only collection of Color objects in this palette.

public ReadOnlyObservableCollection<Color> Colors { get; }

Property Value

ReadOnlyObservableCollection<Color>

Remarks

This collection includes the BaseColors values, along with other shade variants if the IsShadeGenerationEnabled property is set to true.

See Also

IsShadeGenerationEnabled

Indicates whether dark and light shade variants of the BaseColors will be appended to the Colors collection.

public bool IsShadeGenerationEnabled { get; set; }

Property Value

bool

Kind

A MicroPaletteKind that indicates the built-in palette to use.

public MicroPaletteKind Kind { get; set; }

Property Value

MicroPaletteKind

Methods

OnChanged(EventArgs)

Raises the Changed event.

protected virtual void OnChanged(EventArgs e)
Parameter Type Description
e EventArgs

The event data.

Events

Changed

Occurs after the palette has been changed.

public event EventHandler? Changed

Event Type

EventHandler

Inherited Members

Extension Methods