Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vpapenko/ColorPicker
Color pickers for Xamarin Forms.
https://github.com/vpapenko/ColorPicker
android c-sharp color-pickers colorpicker csharp dotnet ios uwp xamarin xamarin-forms
Last synced: 30 days ago
JSON representation
Color pickers for Xamarin Forms.
- Host: GitHub
- URL: https://github.com/vpapenko/ColorPicker
- Owner: vpapenko
- License: mit
- Created: 2019-11-25T10:40:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T17:28:47.000Z (about 1 year ago)
- Last Synced: 2024-11-09T05:20:08.679Z (about 1 month ago)
- Topics: android, c-sharp, color-pickers, colorpicker, csharp, dotnet, ios, uwp, xamarin, xamarin-forms
- Language: C#
- Homepage:
- Size: 91.6 MB
- Stars: 43
- Watchers: 4
- Forks: 11
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-xamarin-forms - ColorPicker ★32
README
[![NuGet](http://img.shields.io/nuget/v/ColorPicker.Xamarin.Forms.svg)](https://www.nuget.org/packages/ColorPicker.Xamarin.Forms/)
![](https://github.com/vpapenko/ColorPicker/workflows/Tests/badge.svg)
[![CodeFactor](https://www.codefactor.io/repository/github/vpapenko/colorpicker/badge/master)](https://www.codefactor.io/repository/github/vpapenko/colorpicker/overview/master)
# ColorPicker
ColorPicker is the multi-platform pack of color pickers for Xamarin Forms.# Supported platforms
- Android
- iOs
- UWP# Clor pickers
```ColorWheel```: color circle with alpha slider and luminosity slider.
```ColorCircle```: only color circle.
```ColorTriangle```
```HSLSliders```
```RGBSliders```
This library contains several base classes for custom color pickers.
# TestApp
TestApp provides basic examples of how to use color pickers.# How to use
Add this package both to Xamarin Forms and platform-specific projects.Add color picker as any other Xamarin Forms control.
### iOS project
add
```C#
ColorPickerEffects.Init();
```
to ```AppDelegate.FinishedLaunching```### UWP project
Replace
```C#
Xamarin.Forms.Forms.Init(e);
```
in ```OnLaunched``` of ```App.xaml.cs``` by
```C#
var rendererAssemblies = ColorPicker.UWP.ColorPickerEffects.GetRendererAssemblies();
Xamarin.Forms.Forms.Init(e, rendererAssemblies);
```## Useful properties
### Common properties
**```SelectedColor```** It could be used to read selected color and to set the color to picker.
**```ConnectedColorPicker```** Multiple color pickers could be connected using this property. Bind color pickers one by one in chain.**```WheelBackgroundColor```** For Color wheel and Color Triangle. Background inside outer ring.
**```Vertical```** Vertical slider.
**```ShowAlphaSlider```**
**```PickerRadiusScale```**
### Color wheel
**```ShowLuminosityWheel```****```ShowLuminositySlider```**