Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 months ago
JSON representation

🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI

Awesome Lists containing this project

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









```