WpfColorPicker 2.0.2
dotnet add package WpfColorPicker --version 2.0.2
NuGet\Install-Package WpfColorPicker -Version 2.0.2
<PackageReference Include="WpfColorPicker" Version="2.0.2" />
<PackageVersion Include="WpfColorPicker" Version="2.0.2" />
<PackageReference Include="WpfColorPicker" />
paket add WpfColorPicker --version 2.0.2
#r "nuget: WpfColorPicker, 2.0.2"
#:package WpfColorPicker@2.0.2
#addin nuget:?package=WpfColorPicker&version=2.0.2
#tool nuget:?package=WpfColorPicker&version=2.0.2
WpfColorPicker
A modern, full-featured WPF Color Picker UserControl for .NET 8.
Full documentation: WpfColorPicker-guide.md — API reference, architecture, integration guides, and usage examples.
What's New in 2.0.2
- +10 UI localizations added — uk-UA, cs-CZ, vi-VN, hu-HU, ro-RO, id-ID, th-TH, el-GR, da-DK, fi-FI — reaching 28 satellite resource locales (Phase 6 wave).
- Self-contained NuGet localization fix — subclass resources are now loaded correctly when the package is consumed standalone (Phase 5 fix for the constructor-ordering bug that prevented satellite assemblies from resolving).
NeutralLanguage=en-USdeclared soResourceManagerno longer warns at build time.- No public API changes — drop-in upgrade from 2.0.1.
What's New in 2.0.1
- HSV color wheel + RGB/HSL sliders + opacity + recent colors + eyedropper — full feature set wired with
DynamicResourcetheming so the picker follows the host app's theme.
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- WpfHexEditor.Core.Localization (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
2.0.2 — +10 new localizations (uk-UA, cs-CZ, vi-VN, hu-HU, ro-RO, id-ID, th-TH, el-GR, da-DK, fi-FI) reaching 28 total via ColorPickerResources satellite assemblies; Phase 5 self-contained NuGet localization (subclass resources loading fix). 2.0.1 — HSV color wheel + RGB/HSL sliders + opacity + recent colors + eyedropper + DynamicResource theming.