Class ColorPaletteBase
ColorPaletteBase is the base class for all palettes. When you want to implement custom Palette just inherit this class and implement the methods.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public abstract class ColorPaletteBase
Constructors
ColorPaletteBase()
Declaration
protected ColorPaletteBase()
Properties
ColumnsCount
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.
Declaration
public abstract int ColumnsCount { get; set; }
Property Value
System.Int32
The columns count. |
ItemsFlow
Gets or sets the items flow direction.
Declaration
public abstract Orientation ItemsFlow { get; set; }
Property Value
System.Windows.Controls.Orientation
The items flow. |
Methods
GetColors()
GetColors represent all the colors in a particular Palette.
Declaration
public abstract IEnumerable<Color> GetColors()
Returns
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
|
HexStringToColor(String)
This method convert string representation of a color to Color object.
Declaration
public static Color HexStringToColor(string hexColor)
Parameters
System.String
hexColor
Color representation in HEX format. |
Returns
System.Windows.Media.Color
|
Remarks
This method convert string in #XXXXXXXX format to Color object.