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: 26 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 (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-03-15T17:48:31.000Z (8 months ago)
- Last Synced: 2024-09-07T10:15:41.189Z (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
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
```