MaterialColorPalette Class
Implements a reduced version of the 2014 Material Design color palette.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)
- C#
- VB
- F#
public class MaterialColorPalette : IColorPalette
Public Class MaterialColorPalette
Implements IColorPalette
type MaterialColorPalette =
class
interface IColorPalette
end
Inheritance | Object → MaterialColorPalette |
Implements | IColorPalette |
Remarks
This palette is based on the one outlined here: https://material.io/design/color/the-color-system.html#tools-for-picking-colors In order to make the palette uniform and rectangular the following alterations were made: 1. The A100-A700 shades of each color are excluded. These shades do not exist for all colors (brown/gray). 2. Black/White are stand-alone and are also excluded.
Constructors
MaterialColorPalette() | Initializes a new instance of the MaterialColorPalette class |
Properties
ColorCount | Gets the total number of colors in this palette. A color is not necessarily a single value and may be composed of several shades. |
ShadeCount | Gets the total number of shades for each color in this palette. Shades are usually a variation of the color lightening or darkening it. |
Methods
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetColor(Int32, Int32) | Gets a color in the palette by index. |
GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
InitColorChart() | Initializes all color chart colors. |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() | Returns a string that represents the current object. (Inherited from Object) |