
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
PixiEditor.ColorPicker
Advanced tools
A collection of various WPF controls used to select colors. See documentation and usage examples in the project repository, https://github.com/PixiEditor/ColorPicker. Supports .NET Framework 4.5.1+, .NET Core 3.1+, .NET 5 - 7. Originally developed for PixiEditor: https://github.com/PixiEditor/PixiEditor.
A collection of various WPF and AvaloniaUI controls used to select colors. Supports .NET Framework 4.5.1+, .NET Core 3.1+, .NET 5 - 7 (WPF) and .NET 6 - 8 (AvaloniaUI). Originally developed for PixiEditor.
SquarePicker
: A HSV/HSL Color Picker, consists of a circular hue slider and HV/HL square.ColorSliders
: A set of HSV/RGB + Alpha slidersHexColorTextBox
: An RGBA Hex text fieldColorDisplay
: A Primary/Secondary Color display with a swap buttonStandardColorPicker
: Combines everything listed above in one controlPortableColorPicker
: A collapsible version of StandardColorPickerAlphaSlider
: A separate alpha slider controlSee ColorPickerDemo for an example project.
Basic usage:
All controls share these properties:
SelectedColor
dependency property stores the current color as System.Windows.Media.Color
or Avalonia.Media.Color
. Use this one if you simply want to get (or bind to) the current color. When connecting controls together with bindings, use the ColorState
dependency property instead.ColorChanged
: An event that fires on SelectedColor change.Color
property contains nested properties you may bind to or use to retrieve the color in code-behind:
Color.A
: Current Alpha, a double ranging from 0 to 255Color.RGB_R
, Color.RGB_G
, Color.RGB_B
: Dimensions of the RGB color space, each is a 0-255 doubleColor.HSV_H
: Hue in the HSV color space, a 0-360 doubleColor.HSV_S
: Saturation in the HSV color space, a 0-100 doubleColor.HSV_V
: Value in the HSV color space, a 0-100 doubleColor.HSL_H
: Hue in the HSL color space, a 0-360 doubleColor.HSL_S
: Saturation in the HSL color space, a 0-100 doubleColor.HSL_L
: Lightness in the HSL color space, a 0-100 doubleColorState
dependency property contains all info about the current state of the control. Use this property to bind controls together. Do not use it for any other purpose, use the other properties listed above.Apart from those, some controls have unique properties:
SecondColorState
, SecondColor
, and SecondaryColor
are functionally identical to ColorState
, Color
, and SelectedColor
respectively. These are present on controls that have a secondary color.HintColorState
, HintNotifyableColor
, and HintColor
are functionally identical to ColorState
, Color
, and SelectedColor
respectively. These are present on controls that have a hint color. The hint color is a color field that can be used to obtain the primary color from an external source when the user clicks a button.UseHintColor
enables the hint color or disables it (disabled by default).SmallChange
lets you change SmallChange
of sliders, which is used as sensitivity for when the user turns the scroll wheel with the cursor over the sliders. Present on controls with sliders.ShowAlpha
lets you hide the alpha channel on various controls. Present on all controls containing either an alpha slider or a hex color textbox.ShowFractionalPart
lets you hide the digits after the "." in the textboxes showing HSV and HSL values. Present on ColorSliders
and on other controls containing ColorSliders
.PickerType
: HSV or HSL, present on SquarePicker
and on controls that contain SquarePicker
.HexRepresentation
: RGBA or ARGB, present on HexColorTextBox
and on controls that contain HexColorTextBox
.Styling differs between AvaloniaUI and WPF version. See the respective READMEs for more info.
See WPF Styling
Read flabbet's article on the theory behind the first version of this project on dev.to
FAQs
A collection of various WPF controls used to select colors. See documentation and usage examples in the project repository, https://github.com/PixiEditor/ColorPicker. Supports .NET Framework 4.5.1+, .NET Core 3.1+, .NET 5 - 7. Originally developed for PixiEditor: https://github.com/PixiEditor/PixiEditor.
We found that pixieditor.colorpicker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.