Table of Contents

Class ColorPickerView

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

Displays a list of colors, from which the user can select a color.

public class ColorPickerView : BasePickerView, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IElementConfiguration<Picker>, IPicker, IView, IElement, ITransform, ITextStyle, ITextAlignment, IItemDelegate<string>
Inheritance
ColorPickerView
Implements

Constructors

ColorPickerView()

Initializes a new instance of the ColorPickerView class.

Properties

SelectedColor

Gets or sets selected color.

Methods

AddColor(Color)

Adds color to the list of colors.

AddDefaultColors(KnownColorCategory[]?)

Adds default colors from the specified color categories.

AddIfMissing(Color?)

Adds the specified color to the list if it is not already present.

ClearColors()

Clears list of the colors.

EnsureAddedAndSelect(Color?)

Ensures the specified color is added to the list and selects it.

GetColorIndex(Color?)

Gets the index of the specified color in the list of colors.