WpfColorPicker 2.0.1

dotnet add package WpfColorPicker --version 2.0.1
                    
NuGet\Install-Package WpfColorPicker -Version 2.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WpfColorPicker" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WpfColorPicker" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="WpfColorPicker" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WpfColorPicker --version 2.0.1
                    
#r "nuget: WpfColorPicker, 2.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WpfColorPicker@2.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WpfColorPicker&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=WpfColorPicker&version=2.0.1
                    
Install as a Cake Tool

WpfColorPicker

A modern, full-featured WPF Color Picker UserControl for .NET 8.

Features

  • HSV Color Wheel — intuitive hue/saturation selection with value slider
  • RGB / HSL Sliders — precise numeric color adjustment
  • Hex Input — type hex color codes directly (#RRGGBB / #AARRGGBB)
  • Opacity Support — alpha channel slider for transparent colors
  • Standard Palettes — predefined color sets for quick selection
  • Recent Colors — automatically tracks recently used colors
  • Themeable — uses WPF DynamicResources for seamless theme integration
  • Zero Dependencies — standalone assembly, no external NuGet packages

Quick Start

<Window xmlns:cp="clr-namespace:WpfHexEditor.ColorPicker.Controls;assembly=WpfHexEditor.ColorPicker">
    <cp:ColorPicker SelectedColor="Blue"
                    ColorChanged="ColorPicker_ColorChanged" />
</Window>
private void ColorPicker_ColorChanged(object sender, Color color)
{
    // Use the selected color
    myBorder.Background = new SolidColorBrush(color);
}

Theme Integration

The control uses these DynamicResources (optional — fallbacks are built-in):

Resource Key Usage
BorderBrush Control frame border
SurfaceElevatedBrush Hex display background
ForegroundBrush Text color

Installation

dotnet add package WpfColorPicker

License

GNU AGPL v3.0 — GitHub Repository

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 50 4/10/2026
0.1.2 1,508 12/25/2019