All Projects → drogoganor → Colorpickerwpf

drogoganor / Colorpickerwpf

Licence: mit
Simple color picker control for WPF

Projects that are alternatives of or similar to Colorpickerwpf

Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+5194.37%)
Mutual labels:  color, picker, color-picker
a-color-picker
A color picker for web app
Stars: ✭ 97 (+36.62%)
Mutual labels:  color, color-picker, picker
Pixel Picker
A tiny menu bar application that helps you pick colours from your screen! 🔍✨
Stars: ✭ 318 (+347.89%)
Mutual labels:  color, picker, color-picker
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+281.69%)
Mutual labels:  color, picker, color-picker
react-native-color-panel
React Native Color Panel Component for iOS and Android 🏳️‍🌈
Stars: ✭ 21 (-70.42%)
Mutual labels:  color, color-picker, picker
ColorPickerLib
A WPF/MVVM implementation of a themeable color picker control.
Stars: ✭ 44 (-38.03%)
Mutual labels:  color, color-picker, wpf
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+978.87%)
Mutual labels:  color, picker, color-picker
colr pickr
Colr Pickr, a vanilla JavaScript color picker component built with SVGs, with features like saving colors. Similar design to the chrome-dev-tools color picker.
Stars: ✭ 27 (-61.97%)
Mutual labels:  color, color-picker, picker
React Colorful
🎨 A tiny (2,5 KB) color picker component for React and Preact apps
Stars: ✭ 951 (+1239.44%)
Mutual labels:  color, picker, color-picker
ColorPick.js
A simple and minimal jQuery color picker plugin for the modern web.
Stars: ✭ 48 (-32.39%)
Mutual labels:  color, picker
Mkcolorpicker
ColorPicker is a fantastic color picker 🎨 written in Swift. Developers can use our color picker as is or they can customize it with all the available features
Stars: ✭ 59 (-16.9%)
Mutual labels:  picker, color-picker
Egorozh.ColorPicker
🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI
Stars: ✭ 39 (-45.07%)
Mutual labels:  color-picker, wpf
ColorPicker
Customizable Color Picker control for WPF
Stars: ✭ 57 (-19.72%)
Mutual labels:  color-picker, wpf
Vanilla Colorful
A tiny color picker custom element for modern web apps (2.7 KB) 🎨
Stars: ✭ 467 (+557.75%)
Mutual labels:  color, color-picker
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (+388.73%)
Mutual labels:  wpf, color-picker
Alerts And Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
Stars: ✭ 5,267 (+7318.31%)
Mutual labels:  picker, color-picker
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (+511.27%)
Mutual labels:  color, color-picker
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-77.46%)
Mutual labels:  color, color-picker
Iro.js
🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats
Stars: ✭ 796 (+1021.13%)
Mutual labels:  color, color-picker
Przm
🎨 A simple, yet feature rich color picker and manipulator
Stars: ✭ 17 (-76.06%)
Mutual labels:  color, color-picker

ColorPickerWPF

A simple WPF color picker control for .NET 4.5.2 licensed under MIT. Contains two color gradient images to sample from, and custom palette support.

screenshot

You can invoke it as a dialog using:

Color color;

bool ok = ColorPickerWindow.ShowDialog(out color);

Or use the user control itself in your application: ColorPickerWPF.ColorPickerControl

screenshot

The user can define their own palette by selecting a color and ctrl+clicking a swatch in the custom colors section (lower right).

The custom palette can be saved to an XML file in the application folder or loaded from the same.

The dialog won't load the custom palette automatically by default, but you can tell it to with the optional flags to ColorPickerWindow.ShowDialog([...], ColorPickerDialogOptions flags, string customPaletteName)

You can specify to show the simple (collapsed) view with flags = ColorPickerDialogOptions.SimpleView

Or you can load the default palette file (specified in the app.config setting DefaultColorPaletteFilename) with flags = ColorPickerDialogOptions.LoadCustomPalette.

Or both using flags = ColorPickerDialogOptions.SimpleView | ColorPickerDialogOptions.LoadCustomPalette

Finally, you can specify a palette filename to load instead of the default with the final optional argument string customPaletteName

An example showing the simple view and loading a custom palette file:

ColorPickerWindow.ShowDialog(out color, ColorPickerDialogOptions.SimpleView | ColorPickerDialogOptions.LoadCustomPalette, "MyPalette.xml");

This would show the dialog in simple view, and load the palette file "MyPalette.xml".

If you are using the ColorPickerControl instead of the dialog, you can load custom palettes with: LoadDefaultCustomPalette() or LoadCustomPalette(string filename).

The palette file, default "ColorPalette.xml", contains both the custom palette colors and the inbuilt colors. You can create your own inbuilt palette if you create an instance of ColorPickerWPF.Code.ColorPalette, populate its data accordingly, and save to file using ColorPalette.SaveToXml(string filename). You can then distribute your application with this custom palette file.

Unfortunately there is no mechanism for customizing the color gradient sample images at this time, or indeed any other customization. If you require further customization I recommend cloning the repo and adding ColorPickerWPF to your solution.

ColorPickerWPF on Nuget Gallery

Thanks to

Fatcow Icons for the dialog window icon.

WriteableBitmapEx for image manipulation code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].