Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The ColorSelector is a widget to set a series of colors.
It also allows to load/save colors from/to the configuration with a unique identifier.
public class ColorSelector : Layout, IAccessibleObject
- Inheritance
-
System.Object
ColorSelector
- Implements
-
Constructors
View Source
ColorSelector(EvasObject)
Creates and initializes a new instance of the ColorSelector class.
Declaration
public ColorSelector(EvasObject parent)
Parameters
API Level: preview
Properties
View Source
Mode
Gets or sets the Colorselector's mode.
Declaration
public ColorSelectorMode Mode { get; set; }
Property Value
API Level: preview
View Source
Opacity
Gets the Alpha of a default Color class (value is -1).
Declaration
public override int Opacity { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
API Level: preview
View Source
PaletteName
Gets or sets the current palette's name.
Declaration
public string PaletteName { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: preview
View Source
SelectedColor
Gets or sets the color of colorselector.
Declaration
public Color SelectedColor { get; set; }
Property Value
API Level: preview
Methods
View Source
AddPaletteColor(Color)
Adds a new color item to the palette.
Declaration
public ColorSelectorItem AddPaletteColor(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
The color item to add.
|
Returns
API Level: preview
Declaration
public void ClearPalette()
API Level: preview
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
Parent EvasObject.
|
Returns
Type |
Description |
System.IntPtr |
Handle IntPtr.
|
Overrides
API Level: preview
Events
View Source
ColorChanged
ColorChanged will be triggered when the SelectedColor is changed.
Declaration
public event EventHandler<ColorChangedEventArgs> ColorChanged
Event Type
API Level: preview
Implements
Extension Methods