Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egorozh/Egorozh.ColorPicker
🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI
https://github.com/egorozh/Egorozh.ColorPicker
avalonia avaloniaui color-palette color-picker colorpicker csharp netcore wpf
Last synced: 27 days ago
JSON representation
🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI
- Host: GitHub
- URL: https://github.com/egorozh/Egorozh.ColorPicker
- Owner: egorozh
- License: mit
- Created: 2020-02-29T15:20:05.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2024-03-15T17:48:31.000Z (9 months ago)
- Last Synced: 2024-10-30T01:02:40.454Z (about 2 months ago)
- Topics: avalonia, avaloniaui, color-palette, color-picker, colorpicker, csharp, netcore, wpf
- Language: C#
- Homepage:
- Size: 1.03 MB
- Stars: 74
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-avalonia - Egorozh.ColorPicker - A color picker with RGB and HSB support. (Libraries & Extensions / Controls)
README
[![Nuget (with prereleases)](https://img.shields.io/nuget/v/Egorozh.ColorPicker.Avalonia.Dialog?label=avalonia-nuget&style=plastic)](https://www.nuget.org/packages/Egorozh.ColorPicker.Avalonia.Dialog/) [![Nuget (with prereleases)](https://img.shields.io/nuget/v/Egorozh.ColorPicker.WPF.Dialog?label=wpf-nuget&style=plastic)](https://www.nuget.org/packages/Egorozh.ColorPicker.WPF.Dialog/) [![Nuget (with prereleases)](https://img.shields.io/nuget/v/Egorozh.ColorPicker.WPF.Dialog.MahApps?label=wpf-mahapps-nuget&style=plastic)](https://www.nuget.org/packages/Egorozh.ColorPicker.WPF.Dialog.MahApps/)
# Egorozh.ColorPicker
## AvaloniaUI ColorPicker:
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-avalonia-1.png "Пример диалогого окна")
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-avalonia-2.png "Пример диалогого окна")
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-avalonia-3.png "Пример диалогого окна")### AvaloniaUI Getting Started
Install the library as a NuGet package:
```powershell
Install-Package Egorozh.ColorPicker.Avalonia.Dialog
# Or 'dotnet add package Egorozh.ColorPicker.Avalonia.Dialog'
```Then, reference the preffered theme from your `App.xaml` file:
```xml
```
Done! Use ColorPickerButton
```xml```
or ColorPickerDialog:
```c#
ColorPickerDialog dialog = new ()
{
Color = _color
};var res = await dialog.ShowDialog(Owner);
if (res)
_color = dialog.Color;
```## WPF ColorPicker:
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-1.png "Пример диалогого окна")
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-2.png "Пример диалогого окна")
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-3.png "Пример диалогого окна")
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-4.png "Пример диалогого окна")
![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-mahapps-1.png "MahApps")### WPF Getting Started
Install the library as a NuGet package:
```powershell
Install-Package Egorozh.ColorPicker.WPF.Dialog
# Or 'dotnet add package Egorozh.ColorPicker.WPF.Dialog'
```
Done! Use ColorPickerButton
```xml```
or ColorPickerDialog:
```c#
var dialog = new ColorPickerDialog
{
Owner = Owner,
Color = Color
};var res = dialog.ShowDialog();
if (res == true)
Color = dialog.Color;
```
### To run MahApps Version:
Install the library as a NuGet package:```powershell
Install-Package Egorozh.ColorPicker.WPF.Dialog.MahApps
# Or 'dotnet add Egorozh.ColorPicker.WPF.Dialog.MahApps'
```
Then, reference the preffered theme from your `App.xaml` file:```xml
```