Skip to main content

FlatHalfColorPalette Class

Definition

Assembly:Avalonia.Controls.ColorPicker
Package:Avalonia.Controls.ColorPicker

Implements half of the Avalonia.Controls.FlatColorPalette for improved usability.

public class FlatHalfColorPalette

Inheritance: object -> FlatHalfColorPalette

Implements:IColorPalette

Remarks

See:

The GitHub project is licensed as MIT: https://github.com/designmodo/Flat-UI.

Constructors

NameDescription
FlatHalfColorPaletteNo summary available.

FlatHalfColorPalette Constructor

public FlatHalfColorPalette()

Methods

NameDescription
GetColorGets a color in the palette by index.

GetColor Method

Gets a color in the palette by index.

public Avalonia.Media.Color GetColor(int colorIndex, int shadeIndex)

Parameters

colorIndex int

The index of the color in the palette. The index must be between zero and Avalonia.Controls.IColorPalette.ColorCount.

shadeIndex int

The index of the color shade in the palette. The index must be between zero and Avalonia.Controls.IColorPalette.ShadeCount.

Returns

Avalonia.Media.Color

The color at the specified index or an exception.

Properties

NameDescription
ColorCountGets the total number of colors in this palette. A color is not necessarily a single value and may be composed of several shades.
ShadeCountGets the total number of shades for each color in this palette. Shades are usually a variation of the color lightening or darkening it.

ColorCount Property

Gets the total number of colors in this palette. A color is not necessarily a single value and may be composed of several shades.

public int ColorCount { get; set; }

Remarks

Represents total columns in a table.

ShadeCount Property

Gets the total number of shades for each color in this palette. Shades are usually a variation of the color lightening or darkening it.

public int ShadeCount { get; set; }

Remarks

Represents total rows in a table.