In This Article

ColorPaletteFactoryBase Class

An abstract base class with helper logic for creating a ColorPalette.

public abstract class ColorPaletteFactoryBase : ObservableObjectBase, IColorPaletteFactory
Inheritance:
object ObservableObjectBase object
Derived:
DefaultColorPaletteFactory
Implements:
IColorPaletteFactory

Constructors

ColorPaletteFactoryBase()

Initializes an instance of the class.

protected ColorPaletteFactoryBase()

Methods

Create()

Creates and initializes a ColorPalette.

public abstract ColorPalette Create()

Returns

ColorPalette:

The ColorPalette that was created.

CreateColorRamp(Hue, UIColor)

Creates a non-neutral ColorRamp with shades based on a mid-tone color.

protected static ColorRamp CreateColorRamp(Hue hue, UIColor midtoneColor)
Parameter Type Description
hue Hue

The Hue whose name will be the ramp name.

midtoneColor UIColor

The midtone (middle) shade in the ramp.

Returns

ColorRamp:

The ColorRamp that was created.

CreateColorRamp(string, bool, UIColor)

Creates a ColorRamp with shades based on a mid-tone color.

protected static ColorRamp CreateColorRamp(string name, bool isNeutral, UIColor midtoneColor)
Parameter Type Description
name string

The ramp name, which is often the color family name (e.g., "Blue") associated with the ramp.

isNeutral bool

Whether the color ramp is for neutral (e.g., grayscale) colors.

midtoneColor UIColor

The midtone (middle) shade in the ramp.

Returns

ColorRamp:

The ColorRamp that was created.

Inherited Members

Extension Methods