Skip to content

ColorEditor class

Represents an editor that allows users to select a color.

Namespace: Eremex.AvaloniaUI.Controls.Editors
Assembly: Eremex.Avalonia.Controls.dll
NuGet Package: Eremex.Avalonia.Controls

Declaration

public class ColorEditor : TemplatedControl

Public Members

name description
ColorEditor() Initializes a new instance of the ColorEditor class.
ApplyCustomColorCommand { get; } Gets the command that applies the color selected in the color picker.
CloseCommand { get; } Gets the command that closes the editor's popup.
Color { get; set; } Gets or sets the currently selected color.
ColorsShowMode { get; set; } Gets or sets which color sets are displayed in the editor.
CustomColors { get; set; } Gets or sets the collection of custom colors displayed in the editor.
IsCloseButtonVisible { get; } Gets whether the close button is visible.
IsColorPickerVisible { get; } Gets whether the color picker is visible.
ReadOnly { get; set; } Gets or sets whether the editor is read-only.
ShowAlphaChannel { get; set; } Gets or sets whether the color's alpha channel can be edited.
ShowColorPickerCommand { get; } Gets the command that shows or hides the color picker.
ShowConfirmationButtons { get; set; } Gets or sets whether the color picker displays confirmation buttons.
ThemePalette { get; set; } Gets or sets the color palette displayed in the editor.
OnCustomColorsChanged(…) Updates the custom color buttons displayed in the editor.

See Also

Used in articles