In This Article

MicroPalette Class

Provides a palette of colors for use in charts.

public class MicroPalette
Inheritance:
object object

Constructors

MicroPalette()

Initializes a new instance of the MicroPalette class.

public MicroPalette()

MicroPalette(MicroPaletteKind)

Initializes a new instance of the MicroPalette class.

public MicroPalette(MicroPaletteKind kind)
Parameter Type Description
kind MicroPaletteKind

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

MicroPalette(params Color[])

Initializes a new instance of the MicroPalette class.

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

The palette Color values.

Properties

BaseColors

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

public ObservableCollection<Color> BaseColors { get; }

Property Value

ObservableCollection<Color>:

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

ColorSelectionHint

Gets or sets a MicroColorSelectionHint that provides a hint on how to perform color selection for this palette.

public MicroColorSelectionHint ColorSelectionHint { get; set; }

Property Value

MicroColorSelectionHint:

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

Remarks

See the documentation on the MicroColorSelectionHint for more information on usage.

Colors

Gets the read-only collection of Color objects in this palette.

public ReadOnlyObservableCollection<Color> Colors { get; }

Property Value

ReadOnlyObservableCollection<Color>:

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

Remarks

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

See Also

IsShadeGenerationEnabled

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

public bool IsShadeGenerationEnabled { get; set; }

Property Value

bool:

true if shade generation is enabled; otherwise, false.

Kind

Gets or sets a MicroPaletteKind that indicates the built-in palette to use.

public MicroPaletteKind Kind { get; set; }

Property Value

MicroPaletteKind:

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

Methods

OnChanged(EventArgs)

Raises the Changed event.

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

An EventArgs that contains the event data.

Events

Changed

Occurs after the palette has been changed.

public event EventHandler Changed

Event Type

EventHandler

Inherited Members