Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

trungnt2910/ColorPicker.Maui

 
 

Repository files navigation

ColorPicker.Maui icon

ColorPicker.Maui 🎨

A color picker control for .NET MAUI powered by SkiaSharp.

CI License NuGet version NuGet downloads

This is a fork of Maui.ColorPicker with extra fixes and features maintained by @trungnt2910.

this is largely based on XFColorPickerControl for Xamarin.Forms (https://github.com/UdaraAlwis/XFColorPickerControl) by UdaraAlwis who allowed me to publish this updated version of the control 🙌

Getting Started

add namespace

 xmlns:cp="https://trungnt2910.github.io/schemas/maui/2022/colorpicker"

create control

<cp:ColorPicker
    x:Name="ColorPicker"
    ColorListDirection="Horizontal"
    GradientColorStyle="DarkToColorsToLightStyle"
    PickedColorChanged="ColorPicker_PickedColorChanged"
    PickedColor="Blue">
</cp:ColorPicker>

more to come... 🔜

Exclusive features

  • Setting PickedColor field. This enables many features such as two-way binding and setting an initial picked color.
  • Improved performance due to less unnecessary re-rendering.
  • Some other bug fixes (PointerRingPositionXUnits, PointerRingPositionYUnits properties are fixed).

Documentation

You can access the library's latest documentation here.