New to Telerik UI for WPFStart a free 30-day trial

ColorPaletteBase is the base class for all palettes. When you want to implement custom Palette just inherit this class and implement the methods.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public abstract class ColorPaletteBase

Inheritance: objectColorPaletteBase

Derived Classes: DefaultPaletteGrayscalePaletteReallyWebSafePaletteStandardPaletteWeb216PaletteOfficeColorPalette...

Constructors

C#
protected ColorPaletteBase()

Properties

Represent the number of columns in a Palette. If you want the colors in a Palette to be in a particular order use this property.

C#
public abstract int ColumnsCount { get; set; }
Property Value:

The columns count.

ItemsFlow

Orientation

Gets or sets the items flow direction.

C#
public abstract Orientation ItemsFlow { get; set; }
Property Value:

The items flow.

Methods

GetColors represent all the colors in a particular Palette. Implement this method in the inherit class.

C#
public abstract IEnumerable<Color> GetColors()
Returns:

IEnumerable<Color>

This method convert string representation of a color to Color object.

C#
public static Color HexStringToColor(string hexColor)
Parameters:hexColorstring

Color representation in HEX format.

Returns:

Color

Remarks:

This method convert string in #XXXXXXXX format to Color object.